Crates.io | clia-tracing-config |
lib.rs | clia-tracing-config |
version | 0.2.7 |
source | src |
created_at | 2022-09-21 04:58:55.845569 |
updated_at | 2024-01-06 07:12:51.035436 |
description | A convenient tracing config and init lib, with symlinking and local timezone. |
homepage | https://github.com/clia/tracing-config |
repository | https://github.com/clia/tracing-config |
max_upload_size | |
id | 670685 |
size | 14,212 |
A convenient tracing config and init lib, with symlinking and local timezone.
Use these formats default, and can be configured:
Code example and default values:
let _guard = clia_tracing_config::build()
.filter_level("info")
.with_ansi(true)
.to_stdout(false)
.directory("./logs")
.file_name("my-service.log")
.rolling("daily")
.init();
tracing::info!("logged by tracing");
log::info!("logged by tracing");
rolling
supports: