Make max_line explicit for qt_color_sink

This commit is contained in:
gabime 2023-06-17 17:13:37 +03:00
parent 9ce7295191
commit a29cef5787

View File

@ -431,7 +431,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
setMinimumSize(640, 480);
auto log_widget = new QTextEdit(this);
setCentralWidget(log_widget);
int max_lines = 500; // keep widget to max 500 lines. remove old lines if needed.
int max_lines = 500; // keep the text widget to max 500 lines. remove old lines if needed.
auto logger = spdlog::qt_color_logger_mt("qt_logger", log_widget, max_lines);
logger->info("Some info message");
}