blob: aef97bfb6644c9d946eeb29ae9e320c508549020 [file] [log] [blame]
#import "CustomLogLevelsAppDelegate.h"
#import "MYLog.h"
// Debug levels: off, fatal, error, warn, notice, info, debug
static const DDLogLevel ddLogLevel = DDLogLevelDebug;
@implementation CustomLogLevelsAppDelegate
@synthesize window;
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
// since the verbose log level was undefined, we need to specify the log level for every logger
[DDLog addLogger:[DDASLLogger sharedInstance] withLevel:DDLogLevelDebug];
[DDLog addLogger:[DDTTYLogger sharedInstance] withLevel:DDLogLevelDebug];
DDLogFatal(@"Fatal");
DDLogError(@"Error");
DDLogWarn(@"Warn");
DDLogNotice(@"Notice");
DDLogInfo(@"Info");
DDLogDebug(@"Debug");
}
@end