WPILibC++ 2024.3.2
|
Functions | |
NT_Listener | nt::AddLogger (NT_Inst inst, unsigned int min_level, unsigned int max_level, ListenerCallback func) |
Add logger callback function. More... | |
NT_Listener | nt::AddPolledLogger (NT_ListenerPoller poller, unsigned int min_level, unsigned int max_level) |
Set the log level for a log poller. More... | |
NT_Listener nt::AddLogger | ( | NT_Inst | inst, |
unsigned int | min_level, | ||
unsigned int | max_level, | ||
ListenerCallback | func | ||
) |
Add logger callback function.
By default, log messages are sent to stderr; this function sends log messages to the provided callback function instead. The callback function will only be called for log messages with level greater than or equal to min_level and less than or equal to max_level; messages outside this range will be silently ignored.
inst | instance handle |
min_level | minimum log level |
max_level | maximum log level |
func | listener callback function |
NT_Listener nt::AddPolledLogger | ( | NT_ListenerPoller | poller, |
unsigned int | min_level, | ||
unsigned int | max_level | ||
) |
Set the log level for a log poller.
Events will only be generated for log messages with level greater than or equal to min_level and less than or equal to max_level; messages outside this range will be silently ignored.
poller | poller handle |
min_level | minimum log level |
max_level | maximum log level |