Module tracing

Source
Expand description

Implement tracing subscriber that outputs logs to the console.

Structsยง

ConsoleSubscriber
LogFile ๐Ÿ”’
MultiWriter ๐Ÿ”’
Visitor ๐Ÿ”’

Enumsยง

Buffer ๐Ÿ”’

Staticsยง

CONSOLE_SUBSCRIBER ๐Ÿ”’
INITIAL_BUFFER ๐Ÿ”’
LOG_FILE ๐Ÿ”’

Functionsยง

flush_log_file
init
This require heap allocation sadly, as it uses Arc internally, even though it could be done without it
level_str ๐Ÿ”’
log_file ๐Ÿ”’
move_to_dynamic_buffer
Move the log buffer into the heap, and we can store more data there
shutdown_log_file