generated from PlexSheep/baserepo
refactor(log): remove depereciated Logger::build()
cargo devel CI / cargo CI (push) Has been cancelled
Details
cargo devel CI / cargo CI (push) Has been cancelled
Details
This commit is contained in:
parent
9b94c25234
commit
65936a5c72
|
@ -373,31 +373,6 @@ impl Logger {
|
||||||
LoggerBuilder::default()
|
LoggerBuilder::default()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// ## initializes the logger
|
|
||||||
///
|
|
||||||
/// Will enable the logger to be used.
|
|
||||||
///
|
|
||||||
/// Assumes some defaults, use [`init_customized`](Self::init_customized) for more control
|
|
||||||
#[deprecated(since = "0.4.1", note = "use Logger::builder() instead")]
|
|
||||||
pub fn build(log_dir: Option<PathBuf>, max_level: Option<Level>, uptime: bool) -> Result<Self> {
|
|
||||||
#[allow(deprecated)]
|
|
||||||
Self::build_customized(
|
|
||||||
log_dir.is_some(),
|
|
||||||
log_dir.unwrap_or(PathBuf::from(DEFAULT_LOG_DIR)),
|
|
||||||
true,
|
|
||||||
false,
|
|
||||||
true,
|
|
||||||
false,
|
|
||||||
max_level.unwrap_or(DEFAULT_LOG_LEVEL),
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
true,
|
|
||||||
uptime,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
/// ## initializes the logger
|
/// ## initializes the logger
|
||||||
///
|
///
|
||||||
/// Will enable the logger to be used. This is a version that shows less information,
|
/// Will enable the logger to be used. This is a version that shows less information,
|
||||||
|
|
Reference in New Issue