Skip to content
/ ZJLog Public

Log redirection output tool for iOS, you can set the Log level, redirect output to the proxy interface, save logs to the sandbox, support for c、c++、m、mm code files, and more.

License

Notifications You must be signed in to change notification settings

Eafy/ZJLog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZJLogSDK

Log redirection output tool for iOS, support for c、c++、m、mm code files.
CI Status Version License Platform

Use Description

Log Level

verbose > debug > info > warn > error

parameter level description
ZJLOG_LEVEL_VERBOSE 0 verbose
ZJLOG_LEVEL_DEBUG 1 debug
ZJLOG_LEVEL_INFO 2 info
ZJLOG_LEVEL_WARN 3 warn
ZJLOG_LEVEL_ERROR 4 error

ZJLog Setting API

  • +setLogOFF
    Turn off log output, default on.

  • +setLevel:
    Setting the log level, default verbose.

  • +setDelegate:
    Setting delegate: ZJLogDelegate for didReceiveLogString.

  • +saveLog:
    Switch for save log to sandbox.

Use Print API

For OC

#import <ZJLog/ZJLog.h>
CLog(@"This is a log1");
CLog(@"This is a log2:%@", @"Hello World!");

For C、C++

#include <ZJLog/ZJPrintfLog.h>
CPrintf("This is a log for debug")
CPrintfV("This is a log for verbose")
CPrintfD("This is a log for debug")
CPrintfI("This is a log for info")
CPrintfW("This is a log for warn")
CPrintfE("This is a log for error")

About

Log redirection output tool for iOS, you can set the Log level, redirect output to the proxy interface, save logs to the sandbox, support for c、c++、m、mm code files, and more.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published