mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-07-30 17:48:50 +02:00
Merge pull request #51 from tauri-apps/log/rename
refactor(log): rename builder struct
This commit is contained in:
@@ -142,14 +142,14 @@ fn log(
|
|||||||
logger().log(&builder.args(format_args!("{message}")).build());
|
logger().log(&builder.args(format_args!("{message}")).build());
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct LoggerBuilder {
|
pub struct Builder {
|
||||||
dispatch: fern::Dispatch,
|
dispatch: fern::Dispatch,
|
||||||
rotation_strategy: RotationStrategy,
|
rotation_strategy: RotationStrategy,
|
||||||
max_file_size: u128,
|
max_file_size: u128,
|
||||||
targets: Vec<LogTarget>,
|
targets: Vec<LogTarget>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for LoggerBuilder {
|
impl Default for Builder {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
let format =
|
let format =
|
||||||
time::format_description::parse("[[[year]-[month]-[day]][[[hour]:[minute]:[second]]")
|
time::format_description::parse("[[[year]-[month]-[day]][[[hour]:[minute]:[second]]")
|
||||||
@@ -172,7 +172,7 @@ impl Default for LoggerBuilder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl LoggerBuilder {
|
impl Builder {
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
Default::default()
|
Default::default()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user