| 364 | } |
| 365 | |
| 366 | struct common_log * common_log_main() { |
| 367 | static struct common_log log; |
| 368 | static std::once_flag init_flag; |
| 369 | std::call_once(init_flag, [&]() { |
| 370 | // Set default to auto-detect colors |
| 371 | log.set_colors(tty_can_use_colors()); |
| 372 | }); |
| 373 | |
| 374 | return &log; |
| 375 | } |
| 376 | |
| 377 | void common_log_pause(struct common_log * log) { |
| 378 | log->pause(); |