Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #78 from kastiglione/asl-log-level

Rectify mapping to ASL log level
  • Loading branch information...
commit cce9f8029f29d1d44e9eedd0e5b958472694eac3 2 parents 2342727 + 2621e7c
@robbiehanson robbiehanson authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 Lumberjack/DDASLLogger.m
View
10 Lumberjack/DDASLLogger.m
@@ -76,15 +76,15 @@ - (void)logMessage:(DDLogMessage *)logMessage
const char *msg = [logMsg UTF8String];
int aslLogLevel;
- switch (logMessage->logLevel)
+ switch (logMessage->logFlag)
{
// Note: By default ASL will filter anything above level 5 (Notice).
// So our mappings shouldn't go above that level.
- case 1 : aslLogLevel = ASL_LEVEL_CRIT; break;
- case 2 : aslLogLevel = ASL_LEVEL_ERR; break;
- case 3 : aslLogLevel = ASL_LEVEL_WARNING; break;
- default : aslLogLevel = ASL_LEVEL_NOTICE; break;
+ case LOG_FLAG_ERROR : aslLogLevel = ASL_LEVEL_CRIT; break;
+ case LOG_FLAG_WARN : aslLogLevel = ASL_LEVEL_ERR; break;
+ case LOG_FLAG_INFO : aslLogLevel = ASL_LEVEL_WARNING; break;
+ default : aslLogLevel = ASL_LEVEL_NOTICE; break;
}
asl_log(client, NULL, aslLogLevel, "%s", msg);
Please sign in to comment.
Something went wrong with that request. Please try again.