log4z
log4z copied to clipboard
Log4z is an open source C++ lightweight & cross platform log library
Hi. Good work! Just wondering if the logger clears old logs in the logfolder when files are getting too big and too many, or them being too old? Is it...
从Http接收回的Json数据,由于数据量较大,如何完整的打印出来? 因为在Debug模式下,能看到的内容有限,想着log是专门做这个的,目前使用Log4z,当jons内容较大时,结果为 pid=10520 tid=10400 2021-04-22 14:39:25.018 DEBUG Test.exe "屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯屯蚿 这样的,而对于比较短的,就不会乱码,请问是因为容量有限制吗?

https://github.com/zsummer/log4z/blob/972eac4e742ebed6881fb882610a4222dc9bdae9/log4z.cpp#L1218 https://github.com/zsummer/log4z/blob/972eac4e742ebed6881fb882610a4222dc9bdae9/log4z.cpp#L1501
日志自动清除
你好,可以自动清除日志吗,或者能循环记录,避免日志文件占用空间无限增长,setLoggerReserveTime似乎,只对本次运行的进程有效,程序重新启动,并不检查过往的日志文件是否已经超过保留时间。请问还有其他解决方法吗
ftell 和fseek只支持返回 long ,就是32位,最大2GB文件,超过2GB的文件会返回-1。 ``` inline long open(const char *path, const char * mod) { if (_file != NULL){fclose(_file);_file = NULL;} _file = fopen(path, mod); if (_file) { long tel...
对外暴漏的API说明都很缺失啊,开源的接口得全才能别人用
您好,这个库用得很舒服,可否再舒服点~ 就是,可以在通过在配置文件中使用通配符来自定义文件夹和文件名的格式吗, 比如 [Main] path=./Log/CusModle_%DateTime/ fileName= Main_%DateTime{%Y_%M_%D}.log 目前支持吗,如果支持的话需要怎么做来的,谢谢啊~
inline Log4zStream & Log4zStream::writeDouble(double t, bool isSimple) { #if __cplusplus >= 201103L using std::isnan; using std::isinf; #endif if (isnan(t)) { writeString("nan", 3); return *this; } else if (isinf(t)) { writeString("inf",...
如果不断点调试倒是能正常输出到屏幕,但是这样的话调试就感觉不方便了,很多时候需要看一下屏幕的打印消息。