MBModuleLogRecorder Protocol Reference

Conforms to NSObject
Declared in MBModuleLog.h

Overview

This protocol is adopted by classes that wish to be used as loggers by the MBModuleLog.

+ enable required method

Called prior to any first call to logMessage: to notify the log recorder that it may be used in the future.

+ (void)enable

Discussion

Implementations would typically perform any needed set-up here.

Declared In

MBModuleLog.h

+ logMessage:atSeverity:callingObject:callingSignature:callingFilePath:callingFileLine: required method

Records the log message to the underlying logging subsystem.

+ (void)logMessage:(nonnull NSString *)msg atSeverity:(MBLogSeverity)severity callingObject:(nullable id)caller callingSignature:(nonnull NSString *)signature callingFilePath:(nonnull NSString *)filePath callingFileLine:(NSUInteger)fileLine

Parameters

msg

The message to record.

severity

The severity level of the log message.

caller

The object responsible for issuing this request to log msg. May be nil if not called from an object scope.

signature

The signature of the calling method or function.

filePath

The filesystem path of the source code file containing the calling method or function.

fileLine

The line number within filePath specifying the location of the code responsible for this request to log msg.

Declared In

MBModuleLog.h