ESTLogger

@interface ESTLogger : NSObject

ESTLogger is a helper class to faciliate handling logs and debugging. Class is compatible with KZLinkedConsole.

  • Method allows to set ESTLogLevel for console. Logs above given level will not be printed to console.

    Declaration

    Objective-C

    + (void)setConsoleLogLevel:(ESTLogLevel)level;

    Swift

    class func setConsoleLogLevel(_ level: ESTLogLevel)
  • Method allows to set ESTLogLevel for cache. Logs above given level will not be cached by logger.

    Declaration

    Objective-C

    + (void)setCacheLogLevel:(ESTLogLevel)level;

    Swift

    class func setCacheLogLevel(_ level: ESTLogLevel)
  • Method retrieves logs from cache.

    Declaration

    Objective-C

    + (NSString *)getLogCache;

    Swift

    class func getLogCache() -> String!
  • Method clears cached logs.

    Declaration

    Objective-C

    + (void)clearLogCache;

    Swift

    class func clearLogCache()
  • Method logs given string with specific level. - warning: Warning: Using this method with ESTLoglevel higher than currently set with enableLogger:withLevel: or setConsoleLogLevel: will not print message.

    Declaration

    Objective-C

    + (void)log:(NSString *)message withLevel:(ESTLogLevel)level;

    Swift

    class func log(_ message: String!, with level: ESTLogLevel)
  • Write cached logs to document file. To retrieve it use iTunes File Sharing. For more info visit: https://support.apple.com/en-us/HT201301 .

    Remember to set UIFileSharingEnabled to YES (also known as Application supports iTunes file sharing) in your app’s Info.plist.

    Declaration

    Objective-C

    + (void)dumpLogCacheToFile;

    Swift

    class func dumpLogCacheToFile()