Skip to main content

inicializar_logging

Function inicializar_logging 

Source
pub fn inicializar_logging() -> Result<GuardaLog>
Expand description

Initialises dual logging: terminal (stderr with ANSI) and log file.

Deletes the previous log file before starting (rotation-by-deletion). Returns GuardaLog — the caller must keep it alive until exit.