DDLog Class Reference
| Inherits from | NSObject |
| Declared in | DDLog.h |
Tasks
-
+ loggingQueueProvides access to the underlying logging queue. This may be helpful to Logger classes for things like thread synchronization.
-
+ log:level:flag:context:file:function:line:tag:format:Logging Primitive.
-
+ log:level:flag:context:file:function:line:tag:format:args:Logging Primitive.
-
+ flushLogSince logging can be asynchronous, there may be times when you want to flush the logs. The framework invokes this automatically when the application quits.
-
+ addLogger:Loggers
-
+ registeredClassesRegistered Dynamic Logging
Class Methods
addLogger:
Loggers
+ (void)addLogger:(id<DDLogger>)loggerDiscussion
Loggers
If you want your log statements to go somewhere, you should create and add a logger.
Declared In
DDLog.hflushLog
Since logging can be asynchronous, there may be times when you want to flush the logs. The framework invokes this automatically when the application quits.
+ (void)flushLogDiscussion
Since logging can be asynchronous, there may be times when you want to flush the logs. The framework invokes this automatically when the application quits.
Declared In
DDLog.hlog:level:flag:context:file:function:line:tag:format:
Logging Primitive.
+ (void)log:(BOOL)synchronous level:(int)level flag:(int)flag context:(int)context file:(const char *)file function:(const char *)function line:(int)line tag:(id)tag format:(NSString *)format, ...Discussion
Logging Primitive.
This method is used by the macros above. It is suggested you stick with the macros as they’re easier to use.
Declared In
DDLog.hlog:level:flag:context:file:function:line:tag:format:args:
Logging Primitive.
+ (void)log:(BOOL)asynchronous level:(int)level flag:(int)flag context:(int)context file:(const char *)file function:(const char *)function line:(int)line tag:(id)tag format:(NSString *)format args:(va_list)argListDiscussion
Logging Primitive.
This method can be used if you have a prepared va_list.
Declared In
DDLog.hloggingQueue
Provides access to the underlying logging queue. This may be helpful to Logger classes for things like thread synchronization.
+ (dispatch_queue_t)loggingQueueDiscussion
Provides access to the underlying logging queue. This may be helpful to Logger classes for things like thread synchronization.
Declared In
DDLog.hregisteredClasses
Registered Dynamic Logging
+ (NSArray *)registeredClassesDiscussion
Registered Dynamic Logging
These methods allow you to obtain a list of classes that are using registered dynamic logging, and also provides methods to get and set their log level during run time.
Declared In
DDLog.h