This is a small and beautiful logger on the phone at debug.
Add "CDZConsoleLogger" files to your project
Add pod 'CDZConsolelogger'
in your Podfile
#import "CDZConsoleLoggerDashboard.h"
If you want to show Dashboard.
[CDZConsoleLoggerDashboard sharedDashboard].mini = YES;//or NO
[[CDZConsoleLoggerDashboard sharedDashboard] show];
If you want to hide Dashboard outside can use code, also you can use the Close button on the Dashboard.
[[CDZConsoleLoggerDashboard sharedDashboard] hide];
Log something you want. First init message, and than log it.
CDZConsoleLoggerMessage *message = [CDZConsoleLoggerMessage.alloc init];
message.mesaage = @"[CDZConsoleLogger]this is a log message";
message.level = CDZConsoleLoggerLevelDebug;
[[CDZConsoleLoggerDashboard sharedDashboard].logger logMessage:message];
iOS 8.0 Above
- Open a issue
- QQ:757765420
- Email:nemocdz@gmail.com
- Weibo:@Nemocdz
CDZConsoleLogger is available under the MIT license. See the LICENSE file for more info.