Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Custom CocoaLumberjack logger which sends logs to Crashlytics.
@import CocoaLumberjack;
@interface DDCLSLogger : DDAbstractLogger
#import "DDCLSLogger.h"
@import Crashlytics;
@implementation DDCLSLogger
- (void)logMessage:(DDLogMessage *)logMessage {
NSString *message = _logFormatter ? [_logFormatter formatLogMessage:logMessage] : logMessage->_message;
if (message) {
CLSLog(@"%@", message);
- (NSString *)loggerName {
return @"com.alexruperez.clsLogger";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.