Skip to content

Nemocdz/CDZConsoleLogger

Repository files navigation

CDZConsoleLogger

This is a small and beautiful logger on the phone at debug.

Demo Preview

Changelog

Installation

Manual

Add "CDZConsoleLogger" files to your project

CocoaPods

Add pod 'CDZConsolelogger' in your Podfile

Usage

#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];

Articles

Requirements

iOS 8.0 Above

TODO

Contact

License

CDZConsoleLogger is available under the MIT license. See the LICENSE file for more info.

About

App 端实时展示打印 Log 工具

Resources

License

Stars

Watchers

Forks

Packages

No packages published