Inherits from NSObject
Declared in DDLog.h

Tasks

Class Methods

addLogger:

Loggers

+ (void)addLogger:(id<DDLogger>)logger

Discussion

Loggers

If you want your log statements to go somewhere, you should create and add a logger.

Declared In

DDLog.h

flushLog

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)flushLog

Discussion

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.h

log: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.h

log: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)argList

Discussion

Logging Primitive.

This method can be used if you have a prepared va_list.

Declared In

DDLog.h

loggingQueue

Provides access to the underlying logging queue. This may be helpful to Logger classes for things like thread synchronization.

+ (dispatch_queue_t)loggingQueue

Discussion

Provides access to the underlying logging queue. This may be helpful to Logger classes for things like thread synchronization.

Declared In

DDLog.h

registeredClasses

Registered Dynamic Logging

+ (NSArray *)registeredClasses

Discussion

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