Flannel 2.0.2

Flannel 2.0.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jan 2016

Maintained by Todd Grooms.



Flannel 2.0.2

  • By
  • Todd Grooms

A stylish log formatter for CocoaLumberjack

Requirements

CocoaLumberjack

Installation

Use

Create an instance of one of the loggers in Flannel (as of 1.0.1, there is only FLAVerboseLogFormatter) and set this instance as the log formatter for your loggers.

FLAVerboseLogFormatter *formatter = [[FLAVerboseLogFormatter alloc] init];
[[DDASLLogger sharedInstance] setLogFormatter:formatter];
[[DDTTYLogger sharedInstance] setLogFormatter:formatter];

Formatters and Example Log Statements

FLAVerboseLogFormatter

Log Statement (Code)

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    DDLogInfo(@"Application is launching.");
    return YES;
}

Log Statement (Output)

2014-03-25 13:28:07:263 AppDelegate (application:didFinishLaunchingWithOptions:)[Info]: Application is launching.

Author

Todd Grooms, [email protected]

License

Flannel is available under the MIT license. See the LICENSE file for more info.