Skip to content

基于CocoaLumberjack之上实现的一个CSLogger,可以将不同类型的log文件区分到不同的文件夹。

License

Notifications You must be signed in to change notification settings

KoonChaoSo/CSLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSLogger

Based on CocoaLumberjack,CSLogger,different types of log files can be distinguished into different folders.

Setup

  1. Clone the repo
$ git clone https://github.com/KoonChaoSo/CSLogger.git
$ cd CSLogger
  1. Install dependencies (cocoapods):
$ pod install
  1. Start Test:
$ open your Xcode
Obj-C usage

You can #import "CSLogger.h".

    //分开logger不同的flag
    [DDLog addLogger:[CSLoggerAssembler createCSFileLogger:1000]];
    [DDLog addLogger:[CSLoggerAssembler createCSFileLogger:1001]];
    [DDLog addLogger:[DDTTYLogger sharedInstance]];
...

If you need log, you can `#import "CSLogMacro.h"`
CSLOG_TEST_DDLOG(@"TEST A");
CSLOG_TEST_DDLOG2(@"TEST B");

About

基于CocoaLumberjack之上实现的一个CSLogger,可以将不同类型的log文件区分到不同的文件夹。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published