New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file loggers don't produce any output in the file #82
Comments
I suppose this has to do with the default log level. On Thu, Apr 23, 2015 at 10:57 AM, p0fi notifications@github.com wrote:
Kapp Arnaud - Xaqq |
This is interestingly producing output in the file:
If try the exact same pattern with a logger with multiple sinks like this:
it only gives me the output in the console, nothing in the file,...the file is created but nothing is written in it! |
strange, this which was working for me described in the last comment stopped to work completely. 0 output into the file what could be wrong? |
Might be that the logger didnt flushed yet into the disk. |
Oh, well this really seems to fix the problem, thanks! |
I agree. The wiki should mention it. No way to tell it to flush. Maybe i should return this feature if there is popular demand for it:) |
Added a wiki page about it.. |
I've tried to create a file logger by using this line:
auto MainDebug = spdlog::rotating_logger_mt("file_logger", "logs/mylogfile", 1048576 * 5, 3);
then i do write some log outputs with this line:
MainDebug->trace("some text");
the log file is created, but it always have a 0 bytes size and therefore nothing in it.
Using the latest version from the master branch.
The text was updated successfully, but these errors were encountered: