fn default() -> Self {
        let mut default = Self {
            to_stderr: false,
            to_stderr_pretty: false,
            level: Level::Info,
            to_disk: None,
            binary_name: "".to_string(),
        };

        let current_exe = env::current_exe().expect("Could not determine executable path");
        let binary_name = current_exe
            .file_name()
            .expect("Could not determine executable file");

        default.binary_name = binary_name.to_string_lossy().to_string();

        default
    }
/// Creates and returns a default logging configuration.
///
/// The defaults are:
///   - Do not send log messages to STDERR
///   - Do not pretty print logs to STDERR
///   - The minimum log level is Debug
///   - Do not write logs to disk
///   - The binary name corresponds to the filename of the executable
Creates and returns a default logging configuration.
The defaults are:
Do not send log messages to STDERR
Do not pretty print logs to STDERR
The minimum log level is Debug
Do not write logs to disk
The binary name corresponds to the filename of the executable
Creates and returns a default logging configuration . The defaults are : Do not send log messages to STDERR Do not pretty print logs to STDERR The minimum log level is Debug Do not write logs to disk The binary name corresponds to the filename of the executable
fn default() -> Self {
        let mut default = Self {
            to_stderr: false,
            to_stderr_pretty: false,
            level: Level::Info,
            to_disk: None,
            binary_name: "".to_string(),
        };
        let current_exe = env::current_exe().expect("Could not determine executable path");
        let binary_name = current_exe
            .file_name()
            .expect("Could not determine executable file");
        default.binary_name = binary_name.to_string_lossy().to_string();
        default
    }
fn default ( ) -> Self { let mut default = Self { to_stderr : false , to_stderr_pretty : false , level : Level :: Info , to_disk : None , binary_name : " " . to_string ( ) , } ; let current_exe = env :: current_exe ( ) . expect ( " " ) ; let binary_name = current_exe . file_name ( ) . expect ( " " ) ; default . binary_name = binary_name . to_string_lossy ( ) . to_string ( ) ; default }
Creates and returns a default logging configuration.
Creates and returns a default logging configuration .