Sergey Podobry

Results 176 comments of Sergey Podobry

> I would like to open a logfile (using RollingFileAppender) in 'append' mode, to prevent losing information after a restart. It is always open in 'append' mode. > I have...

This code overwrite the file: ```cpp std::fstream stream; stream.open(log_file, std::ios::out); ```

> How would you report/check file(path) access/write success in plog / RollingFileAppender? Usually there no need for that. See #107.

Plog initialization failure is a very unlikely situation. Also there is a big question how to report this failure as you need log for log, and then log for log...

I have some concerns about this approach: 1) There is no concept of debug output on non-Windows platforms 2) `qDebug` sends log messages to `std::cout` on Linux/Mac 3) `std::cerr` is...

@mrts I'm not a Qt-guy (at least currently) so I cannot say how useful it would be. Also I see that there are `qInfo`, `qWarning`, `qFatal`. Do you use them?

Yes, you can but you need to write and register a signal handler (that will react on kill command). ```cpp void handle_signal(int signal) { plog::get()->setMaxSeverity(plog::verbose); } ```

I'll take a look at what can be done.

I see. Let me think how to better implement it.