Coder Social home page Coder Social logo

Comments (4)

gabime avatar gabime commented on May 19, 2024

Please provide some details (like OS/Compiler, code snippet to reproduce)

from spdlog.

rohitjoshi avatar rohitjoshi commented on May 19, 2024
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.

gabime avatar gabime commented on May 19, 2024

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.

gabime avatar gabime commented on May 19, 2024

Cannot reproduce

from spdlog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.