EchoSourceThe type of output destinations for log messages.
set_out destination sets the output destination for subsequent log messages. If not called, logging defaults to a system-defined output (e.g., stdout).
trace fmt ... logs a TRACE-level message using a format string. Use for verbose or diagnostic output.
info fmt ... logs an INFO-level message using a format string. Use for general information and progress updates.
warn fmt ... logs a WARN-level message using a format string. Use for potential issues that do not interrupt execution.
error fmt ... logs an ERROR-level message using a format string. Use for recoverable errors or failures.
fatal fmt ... logs a FATAL-level message using a format string. Use for unrecoverable errors; may imply imminent shutdown.
flush () forces any buffered log output to be written immediately. Useful if output is line-buffered or writing to a file.