BFLogInterceptor

Objective-C

@protocol BFLogInterceptor <NSObject>

Swift

protocol BFLogInterceptor : NSObjectProtocol

Intercept a log entry from NSLog/OSLog and allow to modify it or to block it.

  • Intercept a log entry from NSLog/OSLog and allow to modify it or to block it.

    Declaration

    Objective-C

    - (BFInterceptedLog *)intercept:(BFInterceptedLog *)interceptedLog;

    Swift

    func intercept(_ interceptedLog: BFInterceptedLog!) -> BFInterceptedLog!

    Parameters

    interceptedLog

    log intercepted

    Return Value

    The log entry to be logged. If nil is returned the log entry won’t be logged.