Skip to content

Instantly share code, notes, and snippets.

@marcin-maciukiewicz
Created July 19, 2011 11:11
Show Gist options
  • Save marcin-maciukiewicz/1092009 to your computer and use it in GitHub Desktop.
Save marcin-maciukiewicz/1092009 to your computer and use it in GitHub Desktop.
Example Log4Cocoa usage
- (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