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
auto file_sink = std::make_shared<spdlog::sinks::rotating_file_sink_mt>(file_logger_path, 10 * 1024 * 1024, 0);
file_sink->set_pattern("[%m/%d/%Y %H:%M:%S.%e] [%^%l%$] %v");
auto file_logger = std::make_shared<spdlog::logger>("file_logger", file_sink);
Log rotation doesn't work if I run my program with a non-root user, but with a root user, it works.
if I disable the fork mode and run my program with a non-root user the log rotation works
The text was updated successfully, but these errors were encountered:
I set up spdlog in the parent before
fork()
Log rotation doesn't work if I run my program with a non-root user, but with a root user, it works.
if I disable the fork mode and run my program with a non-root user the log rotation works
The text was updated successfully, but these errors were encountered: