Skip to main content

Module logging

Module logging 

Source

Functionsยง

flush_log_file
Flush the log buffer. Call at the end of main().
init_log_file
Create/overwrite rsmith.log in the current working directory. Panics if the file cannot be created (fail fast).
init_log_file_in
Create/overwrite a log file in the given directory. Panics if the file cannot be created (fail fast).
is_quiet
Check whether quiet mode is active.
set_quiet
Suppress terminal output (log file only).
write_to_log
Write a string to the log file (no newline). Errors are silently ignored.
writeln_to_log
Write a string + newline to the log file. Errors are silently ignored.