-
new() -> Self
Create new Logger which has no attached file and writes to console.
-
init(f:File, con:bool) -> Self
Create new Logger attached to f and writes to console only if con is true.
-
console(&mut self, con:bool)
sets console writing to true or false.
-
file(&mut self, f:File)
Sets or resets log file f.
-
opt(&mut self, f:Option<File>
sets or resets Logger::fl to the option provided.
-
open(&mut self, s:&str) -> bool
Opens logger, truncating log file if it exists.
-
open_append(&mut self, s:&str) -> bool
Opens logger, appending to log file if it exists.
-
ts_write(&mut self, s:&str) -> &mut Self
Writes date_time stamp then string s to the log target(s).
-
write(&mut self, s:&str) -> &mut Self
Writes string s to the log target(s).
-
close(&mut self)
Closes logger by setting Logger::fl to the option None.