-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Timber. and L. together #2
Comments
Why do you actually want to do that? So that you don't have to change your code? Otherwise, there is no real difference in logging via |
Yes, it is so that I don't have to change, and also I just wanted the file logging capabilities of L. at the moment I am using another library, I wanted to save my data transactions like this...
|
so I think a method to console log, and a separate method to file log would be cool, something like |
Actually, this is defeating one of Writing 2 lines for each debug line is annoying, isn't it? What you could try is following: write your own
PS: |
true enough. I think then we can close this issue as well. Thank you for being so quick to respond! |
You need to adjust the stack trace depth in this function, because your wrapping function will add one level to it... So in this function you'll need to call I'll update the library today and add following:
|
Done. You can try https://github.com/MFlisar/Lumberjack/releases/tag/1.3 now... |
New version v2 supports filtering on a per tree base, just pass in a https://github.com/MFlisar/Lumberjack/blob/master/library/src/main/java/com/michaelflisar/lumberjack/filter/ILogFilter.java to the tree constructors that filters out any group or priority you don't want to log with the tree... |
it would be nice if I can separate the use of L. to log to file, and Timber. as normal (not logging to file) (to prevent #1). Logging to file is why I tried Lumberjack.
The text was updated successfully, but these errors were encountered: