pub fn setup_logging() -> Result<(), Box<dyn Error>>Expand description
Sets up logging for the application.
This function configures log4rs to write logs to a file in the /var/log directory. The log file name includes a timestamp to ensure uniqueness.
ยงReturns
Returns Ok(()) if logging is set up successfully, or an error if setup fails.