file logger: remove test.log after test as well

and a doc formatting fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2020-11-30 14:13:21 +01:00
parent b760d8a23f
commit 43e60ceb41

View File

@ -20,6 +20,7 @@ use std::io::Write;
/// };
/// let mut log = FileLogger::new("test.log", options).unwrap();
/// flog!(log, "A simple log: {}", "Hello!");
/// # std::fs::remove_file("test.log");
/// ```
#[derive(Debug, Default)]
@ -51,7 +52,7 @@ pub struct FileLogger {
options: FileLogOptions,
}
/// Log messages to [FileLogger](tools/struct.FileLogger.html)
/// Log messages to [`FileLogger`](tools/struct.FileLogger.html)
#[macro_export]
macro_rules! flog {
($log:expr, $($arg:tt)*) => ({