You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any method to flush every log before my programe coredump? I use flush_every(seconds(1)) now but the time granularity seems too large that it cannot provider enough logs to me.
Even more could it log any more backtrace at coredump time, it seems more useful than only use "gdb coredump"
The text was updated successfully, but these errors were encountered:
It will not be possible to flush the logs before the core dump.
Because core dump is caused by an abnormal termination of the program.
Consider that it is impossible to rescue the log from a process with abnormal behavior.
It is always better to flush the log with a process that is running normally.
If you want to always flush the log, call spdlog::flush_on(spdlog::level::trace) or spdlog::logger::flush_on(spdlog::level::trace).
Is there any method to flush every log before my programe coredump? I use flush_every(seconds(1)) now but the time granularity seems too large that it cannot provider enough logs to me.
Even more could it log any more backtrace at coredump time, it seems more useful than only use "gdb coredump"
The text was updated successfully, but these errors were encountered: