You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been faced to some error due to the recent version of CocoaLumberjack. Below my version of fixing bugs
- (void)logMessage:(DDLogMessage *)logMessage
{
NSString *logMsg = logMessage.message;
if (_logFormatter)
{
// formatting is supported but not encouraged!
logMsg = [_logFormatter formatLogMessage:logMessage];
}
if (logMsg)
{
int nsloggerLogLevel;
switch (logMessage.flag)
{
// NSLogger log levels start a 0, the bigger the number,
// the more specific / detailed the trace is meant to be
case LOG_FLAG_ERROR : nsloggerLogLevel = 0; break;
case LOG_FLAG_WARN : nsloggerLogLevel = 1; break;
case LOG_FLAG_INFO : nsloggerLogLevel = 2; break;
default : nsloggerLogLevel = 3; break;
}
LogMessageF([logMessage.file UTF8String], logMessage.line, [logMessage.function UTF8String], logMessage.fileName, nsloggerLogLevel, @"%@", logMsg);
}
The text was updated successfully, but these errors were encountered:
I've been faced to some error due to the recent version of CocoaLumberjack. Below my version of fixing bugs
The text was updated successfully, but these errors were encountered: