DDRegisteredDynamicLogging Protocol Reference
Declared in | DDLog.h |
Tasks
-
+ ddLogLevel
Implement these methods to allow a file’s log level to be managed from a central location.
required method
Class Methods
ddLogLevel
Implement these methods to allow a file’s log level to be managed from a central location.
+ (int)ddLogLevel
Discussion
Implement these methods to allow a file’s log level to be managed from a central location.
This is useful if you’d like to be able to change log levels for various parts of your code from within the running application.
Imagine pulling up the settings for your application, and being able to configure the logging level on a per file basis.
The implementation can be very straight-forward:
(int)ddLogLevel { return ddLogLevel; }
(void)ddSetLogLevel:(int)logLevel { ddLogLevel = logLevel; }
Declared In
DDLog.h