zma / zlog Goto Github PK
View Code? Open in Web Editor NEWA low-latency in-memory C logging library
Home Page: https://www.ericzma.com/projects/zlog/
License: The Unlicense
A low-latency in-memory C logging library
Home Page: https://www.ericzma.com/projects/zlog/
License: The Unlicense
Our program runs on both windows platform and Linux platform . I wonder if zlog can support windows platform . It will be better if zlog can be compiled by visual studio .
Hi,
I hit this issue when compiling with GCC 8 with -Wall
:
zlog/zlog.c: In function ‘zlogf_time’:
zlog/zlog.c:172:51: error: ‘.’ directive output may be truncated writing 1 byte into a region of size between 0 and 127 [-Werror=format-truncation=]
snprintf(buffer, ZLOG_BUFFER_STR_MAX_LEN, "[%s.%06lds] ", timebuf, tv.tv_usec);
^
zlog/zlog.c:172:5: note: ‘snprintf’ output between 12 and 153 bytes into a destination of size 128
snprintf(buffer, ZLOG_BUFFER_STR_MAX_LEN, "[%s.%06lds] ", timebuf, tv.tv_usec);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
zlog/zlog.c: In function ‘zlog_time’:
zlog/zlog.c:203:51: error: ‘.’ directive output may be truncated writing 1 byte into a region of size between 0 and 127 [-Werror=format-truncation=]
snprintf(buffer, ZLOG_BUFFER_STR_MAX_LEN, "[%s.%06lds] [@%s:%d]", timebuf, tv.tv_usec, filename, line);
^
zlog/zlog.c:203:5: note: ‘snprintf’ output 17 or more bytes (assuming 144) into a destination of size 128
snprintf(buffer, ZLOG_BUFFER_STR_MAX_LEN, "[%s.%06lds] [@%s:%d]", timebuf, tv.tv_usec, filename, line);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Thanks for zlog
! :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.