Logging #26

Open
leon wants to merge 33 commits from Logging into main
Showing only changes of commit 1dc9f120d6 - Show all commits

View File

@ -110,15 +110,15 @@ impl Default for Config {
* *
* defaults.set_log_verbosity(Warning); * defaults.set_log_verbosity(Warning);
* defaults.set_log_time(false); * defaults.set_log_time(false);
* //defaults.set_log_time_format(None); * assert_eq!(defaults.log_time_format(), "%F-%T:%f");
* defaults.set_log_location(false); * defaults.set_log_location(false);
* defaults.set_log_stdout(true); * defaults.set_log_stdout(true);
* defaults.set_log_stderr(true); * defaults.set_log_stderr(true);
* //defaults.set_log_path(None); * defaults.set_log_path(None);
* //defaults.set_db_addr(None); * assert_eq!(defaults.db_addr(), "localhost");
* defaults.set_db_port(6969); * defaults.set_db_port(6969);
* *
* # assert!(defaults == config::DEFAULTS) * # assert_eq!(defaults,config::DEFAULTS)
* ``` * ```
*/ */
pub const DEFAULTS: Config = Config { pub const DEFAULTS: Config = Config {