Expand description
Implement tracing
subscriber that outputs logs to the console.
Structsยง
- Console
Subscriber - LogFile ๐
- Multi
Writer ๐ - 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