Comments (4)
Please provide some details (like OS/Compiler, code snippet to reproduce)
from spdlog.
Compiler: GNU g++ (Homebrew gcc49 4.9.1) 4.9.1
OS: OSX 10.10.1
Logger: auto lightq_logger = spdlog::rotating_logger_mt("ligh_logger", filename, 1048576 * 500, 10);
Usage:
std::stringstream ss;
ss << boost::format("|%5d|%8X|%s:%u|%s%s") % PID % (tid & 0xffffffff) % filename % line % func_inout %msg;
if(logtype == log::LOG_EVENT) {
event_logger()->notice(ss.str());
}else {
logger()->force_log((spdlog::level::level_enum)logtype,ss.str().c_str());
}
from spdlog.
It does not reproduce under Linux:
==8703==
==8703== HEAP SUMMARY:
==8703== in use at exit: 0 bytes in 0 blocks
==8703== total heap usage: 71 allocs, 71 frees, 5,347 bytes allocated
==8703==
==8703== All heap blocks were freed -- no leaks are possible
==8703==
==8703== For counts of detected and suppressed errors, rerun with: -v
==8703== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
what is the "logger()" call ? Maybe it is the cause?
from spdlog.
Cannot reproduce
from spdlog.
Related Issues (20)
- spdlog build on android,cmake config failed with fmt not founded. HOT 11
- Cannot build on Windows with Visual Studio HOT 1
- Can't log to file asynchronously HOT 1
- flush policy HOT 4
- Lambda Expression Does Not Compile in GCC 4.8.1 Version HOT 13
- Single header version? HOT 1
- Casting error on Clang 15 (and 17) and GCC 13 HOT 7
- I am fellowing Cherno Hazel Engine,and I have include spdlog.h, but spdlog seems has some problem HOT 8
- spdlog for DSP HOT 6
- Compile-time check bypassed due to overloading. HOT 10
- Custom pattern for log and severity level HOT 2
- sometimes print the log, and sometimes it don't. HOT 4
- Does spdlog support printf style logging? HOT 1
- 'parse': is not a member of 'fmt::v9::detail::fallback_formatter<std::basic_ostringstream<char,std::char_traits<char>,std::allocator<char>>,Char,void>' HOT 2
- Logging messages within a custom sink causes a dead lock? HOT 1
- does SPDLOG consider control characters encountered when printing a character array as string termination markers? HOT 1
- Set a log zone prefix to default logger HOT 2
- Memory overflow warning in pattern_formatter-inl.h HOT 1
- Is there a plan to update the included libfmt to fix fmtlib/fmt#3540? HOT 8
- C++20 Modules "'std::basic_string': redefinition" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spdlog.