CCLog
Simple and lightweight cross-platform logs,
easy-to-use simple learning,
and support for multiple languages,
such as C, C++, Perl 6, shell, Objective-C
support ios, osx, watchos, tvos
support pod, cocoapods https://cocoapods.org.cn/pods/CCLog
Perl 6
There are 2 (CCLog & CCLogFull) ways of binding.
调用 CCLog.pm6
调用 CCLogFull.pm6
Shell
Provide simple commands. fg:
ccnormal
ccwarning
ccerror
cctimer
ccloop
ccthread
ccprint
ccsay
ccdie
ccnetwork
These commands are automatically installed locally and can be called directly.
调用 shell
C && C++ && Objective-C
You can use C library or C source (CCLog.h CCLog.c) code directly.
调用 C && C++ && Objective-C
Objective-C
Objective-C can call C directly, Or follow other ways to import.
or use pod https://github.com/ccworld1000/CCLog
pod 'CCLog'
本地安装和卸载
zef install .
zef uninstall CCLog
网络安装
zef update
zef install CCLog
检查安装是否成功
安装可能会是这样的
安装失败可能是这样的,您可以再试一次
颜色显示控制
Perl6 CCLog.pm6 调用 ccshowColor Perl6 CCLogFull.pm6 调用 CCLog_showColor C && C++ && Objective-C 调用 CCLog_showColor fg
提示显示控制
fg
显示日志控制
fg