Created
July 19, 2011 11:11
-
-
Save marcin-maciukiewicz/1092009 to your computer and use it in GitHub Desktop.
Example Log4Cocoa usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)done { | |
log4Debug(@"done"); // <-- debug message | |
[_connection release]; | |
} | |
- (void) createTempFilePath { | |
// .... | |
int fileDescriptor = mkstemp(tempFileNameCString); | |
if (fileDescriptor == -1) { | |
log4Error(@"Problem creating temp file"); // <-- error message | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment