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
  • + ddSetLogLevel: required method

Class Methods

ddLogLevel

+ (DDLogLevel)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:

Declared In

DDLog.h

ddSetLogLevel:

+ (void)ddSetLogLevel:(DDLogLevel)level