Created
November 19, 2024 01:17
-
-
Save hatemogi/3d2970ded1caa273f4a9beaf4c8ff918 to your computer and use it in GitHub Desktop.
tracing_subscriber 초기화
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tracing_subscriber::registry() | |
.with(fmt::layer()) | |
.with( | |
EnvFilter::try_from_default_env() | |
.unwrap_or_else(|_| EnvFilter::new("{crate_name}=debug")), | |
) | |
.init(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment