blob: 0d6144fccca5cac4648dc14b05c20ace1e1be877 [file] [log] [blame] [edit]
#import "RegisteredLoggingTestAppDelegate.h"
#import "RegisteredLoggingTestViewController.h"
#import "DDLog.h"
#import "DDTTYLogger.h"
#import "Lions.h"
#import "Tigers.h"
// Log levels: off, error, warn, info, verbose
static int ddLogLevel = LOG_LEVEL_VERBOSE;
@implementation RegisteredLoggingTestAppDelegate
@synthesize window = _window;
@synthesize viewController = _viewController;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[DDLog addLogger:[DDTTYLogger sharedInstance]];
[Lions logStuff];
[Tigers logStuff];
NSArray *registeredClassNames = [DDLog registeredClassNames];
DDLogVerbose(@"registeredClassNames: %@", registeredClassNames);
NSArray *registeredClasses = [DDLog registeredClasses];
for (Class class in registeredClasses)
{
[class ddSetLogLevel:LOG_LEVEL_VERBOSE];
}
[Lions logStuff];
[Tigers logStuff];
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
return YES;
}
@end