MCPcopy Create free account
hub / github.com/GCWing/BitFun / new

Method new

src/apps/desktop/src/logging.rs:61–71  ·  view source on GitHub ↗
(is_debug: bool)

Source from the content-addressed store, hash-verified

59
60impl LogConfig {
61 pub fn new(is_debug: bool) -> Self {
62 let level = resolve_default_level(is_debug);
63
64 let session_log_dir = create_session_log_dir();
65
66 Self {
67 level,
68 is_debug,
69 session_log_dir,
70 }
71 }
72}
73
74const fn level_filter_to_u8(level: log::LevelFilter) -> u8 {

Callers

nothing calls this directly

Calls 2

resolve_default_levelFunction · 0.85
create_session_log_dirFunction · 0.70

Tested by

no test coverage detected