MLLogger Protocol Reference

Conforms to NSObject
Declared in MLLogger.h

Overview

The logger interface.

– setLogLevel:

Sets the level of logging to display.

- (void)setLogLevel:(MLLogLevel)level

Parameters

level

Log level to set

Discussion

@discussion - By default, it is set to MLLogLevelWarning. - When [MLLogger setLogLevel:] get called, it will attempt to call this method on current logger.

Declared In

MLLogger.h

– logMsg_va:level:format:args: required method

Display a log message at a specific level for a tag. If current logging level doesn’t include this level, this method will not be called.

- (void)logMsg_va:(nullable NSString *)tag level:(MLLogLevel)level format:(NSString *)format args:(va_list)args

Parameters

tag

Logging tag

level

Longging Level

format

Format to use for the log message

args

Log message arguments.

Discussion

This method must be implemented to provide your own logging logic.

Declared In

MLLogger.h