12345678910111213141516171819202122 |
- //
- // TestFormatter.m
- // CustomFormatters
- //
- // CocoaLumberjack Demos
- //
- #import "TestFormatter.h"
- /**
- * For more information about creating custom formatters, see the wiki article:
- * https://github.com/CocoaLumberjack/CocoaLumberjack/wiki/CustomFormatters
- **/
- @implementation TestFormatter
- - (NSString *)formatLogMessage:(DDLogMessage *)logMessage
- {
- return [NSString stringWithFormat:@"%@ | %@ @ %@ | %@",
- [logMessage fileName], logMessage->_function, @(logMessage->_line), logMessage->_message];
- }
- @end
|