![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <debug.h>

Classes | |
| class | Buffer |
Public Member Functions | |
| Log_output () | |
| Log_output (const Log_output &)=delete | |
| Log_output (Log_output &&)=delete | |
| Buffer | get_buffer () |
| const std::string & | get_level_style (int lvl) |
| bool | get_skip_repeats () const |
| bool | is_interactive () const |
| Log_output & | operator= (const Log_output &)=delete |
| Log_output & | operator= (Log_output &&)=delete |
| void | set_skip_repeats (bool val) |
| void | set_timestamp_mode (log_timestamp_mode val) |
Private Member Functions | |
| std::string & | get_internal_buffer () |
| void | submit () |
| void | submit_raw () |
Private Attributes | |
| bool | interactive = false |
| std::string | last_msg |
| int | last_msg_repeats = 0 |
| std::mutex | mut |
| log_timestamp_mode | show_timestamps |
| std::atomic< bool > | skip_repeated = true |
Static Private Attributes | |
| static constexpr int | initial_buf_size = 256 |
Friends | |
| class | Buffer |
| Log_output::Log_output | ( | ) |
Definition at line 396 of file debug.cpp.
References color_output_init(), initial_buf_size, interactive, and last_msg.

|
delete |
|
delete |
|
inline |
Definition at line 153 of file debug.h.
References Buffer.
Referenced by Logger::~Logger(), color_printf(), and log_vprintf().
|
inlineprivate |
Definition at line 174 of file debug.h.
References initial_buf_size.
Referenced by Log_output::Buffer::Buffer(), Log_output::Buffer::get(), submit(), and submit_raw().
|
inline |
Definition at line 194 of file debug.h.
References is_interactive(), LOG_LEVEL_ERROR, LOG_LEVEL_FATAL, LOG_LEVEL_NOTICE, LOG_LEVEL_WARNING, TERM_BOLD, TERM_FG_GREEN, TERM_FG_RED, and TERM_FG_YELLOW.
Referenced by Logger::Logger(), and log_vprintf().

|
inline |
Definition at line 156 of file debug.h.
References skip_repeated.
Referenced by keyboard_control::impl::run().
|
inline |
|
delete |
|
delete |
|
inline |
Definition at line 155 of file debug.h.
References skip_repeated, and val.
Referenced by parse_opts_set_logging(), and keyboard_control::impl::run().
|
inline |
Definition at line 158 of file debug.h.
References show_timestamps, and val.
Referenced by parse_opts_set_logging().
|
inlineprivate |
Definition at line 223 of file debug.h.
References get_internal_buffer(), get_time_in_ns(), interactive, last_msg, last_msg_repeats, log_level, LOG_LEVEL_VERBOSE, LOG_TIMESTAMP_AUTO, LOG_TIMESTAMP_ENABLED, mut, NS_IN_SEC_DBL, show_timestamps, and skip_repeated.
Referenced by Log_output::Buffer::submit().

|
inlineprivate |
Definition at line 257 of file debug.h.
References get_internal_buffer(), last_msg, last_msg_repeats, and mut.
Referenced by Log_output::Buffer::submit_raw().

|
friend |
Definition at line 191 of file debug.h.
Referenced by get_buffer().
|
staticconstexprprivate |
Definition at line 173 of file debug.h.
Referenced by Log_output(), and get_internal_buffer().
|
private |
Definition at line 182 of file debug.h.
Referenced by Log_output(), is_interactive(), and submit().
|
private |
Definition at line 188 of file debug.h.
Referenced by Log_output(), submit(), and submit_raw().
|
private |
Definition at line 189 of file debug.h.
Referenced by submit(), and submit_raw().
|
private |
Definition at line 187 of file debug.h.
Referenced by submit(), and submit_raw().
|
private |
Definition at line 180 of file debug.h.
Referenced by set_timestamp_mode(), and submit().
|
private |
Definition at line 179 of file debug.h.
Referenced by get_skip_repeats(), set_skip_repeats(), and submit().