-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Read Access to DDLog loggers #217
Comments
Well, after adding logger to However, requested feature can be easily added. I can create two methods for that - sync and async. @bpoplauschi @rivera-ernesto what do you think about that? NSArray *loggers = [DDLog allLoggers];
[DDLog allLoggersWithBlock:^(NSArray *loggers) {
}]; |
I can't think of a good reason why we shouldn't expose that list, but my gut is telling me not to do it. Just a hunch |
All loggers are added by user - there's no sense to prohibit access to them. This can be useful, for example, for doing something with log files (e.g. sending them to server). User would have ability to access fileLogger at any time without saving pointer to it. |
That's exactly the reason I would like this feature. The set up of lumberjack is in a helper class. At the moment I need to pass the fileLogger Pointer all the way to where I sent the crash report. |
@PSchu In the mean time give a try to the pre-release version to check that it works for you please:
|
Works just fine Thx |
It would be nice to get read access to the loggers you add to DDLog.
This would enable you to access the fileLogger and especially its logFileManager.
The text was updated successfully, but these errors were encountered: