mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
Make max_line explicit for qt_color_sink
This commit is contained in:
parent
9ce7295191
commit
a29cef5787
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user