yksz / c-logger Goto Github PK
View Code? Open in Web Editor NEWA simple logging library for C/C++
License: MIT License
A simple logging library for C/C++
License: MIT License
In a web app, we need have logs by user. Dynamic file logger creation is possible?
Hi there,
There will always have memory leak detected by valgrind when using file logger, and it will disable if not using file logger.
Is there possible create a logger_deinit
function to let caller to release the stuffs inside c-logger?
Thanks
==151761==
==151761== HEAP SUMMARY:
==151761== in use at exit: 472 bytes in 1 blocks
==151761== total heap usage: 797 allocs, 796 frees, 1,555,765 bytes allocated
==151761==
==151761== 472 bytes in 1 blocks are still reachable in loss record 1 of 1
==151761== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==151761== by 0x4BDE6CD: __fopen_internal (iofopen.c:65)
==151761== by 0x4BDE6CD: fopen@@GLIBC_2.2.5 (iofopen.c:86)
==151761== by 0x48FE7D5: logger_initFileLogger (logger.c:174)
==151761== by 0x10CB6E: main (main.cpp:47)
==151761==
==151761== LEAK SUMMARY:
==151761== definitely lost: 0 bytes in 0 blocks
==151761== indirectly lost: 0 bytes in 0 blocks
==151761== possibly lost: 0 bytes in 0 blocks
==151761== still reachable: 472 bytes in 1 blocks
==151761== suppressed: 0 bytes in 0 blocks
==151761==
==151761== For lists of detected and suppressed errors, rerun with: -s
==151761== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
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.