mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-23 11:36:13 +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());
|
||||
}
|
||||
|
||||
pub struct LoggerBuilder {
|
||||
pub struct Builder {
|
||||
dispatch: fern::Dispatch,
|
||||
rotation_strategy: RotationStrategy,
|
||||
max_file_size: u128,
|
||||
targets: Vec<LogTarget>,
|
||||
}
|
||||
|
||||
impl Default for LoggerBuilder {
|
||||
impl Default for Builder {
|
||||
fn default() -> Self {
|
||||
let format =
|
||||
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 {
|
||||
Default::default()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user