mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 21:17:03 +00:00
- A formatter function can be passed to the CPLogRegister functions. If the given level already has a provider for the given level, the formatter will be replaced with the one passed to the register function. - Added CPLogColorize function to make it easy for users to colorize messages. - CPLogRegisterRange now checks for min <= max, and now correctly starts iterating from min. - Moved colorization of log level to _CPFormatLogMessage. - Whitespace cleanup.
33 lines
525 B
Plaintext
33 lines
525 B
Plaintext
/*
|
|
* AppController.j
|
|
* CPLogTest
|
|
*
|
|
* Created by Aparajita Fishman on September 3, 2010.
|
|
*/
|
|
|
|
@import <Foundation/CPObject.j>
|
|
|
|
|
|
@implementation AppController : CPObject
|
|
{
|
|
CPWindow theWindow;
|
|
}
|
|
|
|
- (void)awakeFromCib
|
|
{
|
|
[theWindow setFullPlatformWindow:YES];
|
|
}
|
|
|
|
- (void)applicationDidFinishLaunching:(CPNotification)aNotification
|
|
{
|
|
CPLog.fatal("fatal");
|
|
CPLog.error("error");
|
|
CPLog.warn("warn");
|
|
CPLog.info("info");
|
|
CPLog.debug("debug");
|
|
CPLog.trace("trace");
|
|
CPLog("message");
|
|
}
|
|
|
|
@end
|