You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-4Lines changed: 18 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,10 +40,17 @@ Starting with v0.10 `tui-logger` is `ratatui` only.
40
40
-[X]`slog` support, providing a Drain to integrate into your `slog` infrastructure
41
41
-[X]`tracing` support
42
42
-[X] Support to use custom formatter for log events
43
+
-[X] Configurable by environment variables
43
44
-[ ] Allow configuration of target dependent loglevel specifically for file logging
44
45
-[X] Avoid duplicating of module_path and filename in every log record
45
46
-[ ] Simultaneous modification of all targets' display/hot logging loglevel by key command
46
47
48
+
## AI generated documentation
49
+
50
+
I have stumbled over an excellent AI-generated description of `tui-logger`, which provides surprisingly deep and (mostly) correct implementation details.
51
+
It would have costed me many days to write an equally good description with so many details and diagrams.
52
+
This docu can be found [here](https://deepwiki.com/gin66/tui-logger).
53
+
47
54
### Smart Widget
48
55
49
56
Smart widget consists of two widgets. Left is the target selector widget and
@@ -135,6 +142,16 @@ Run demo using termion and simple custom formatter in bottom right log widget:
135
142
cargorun--exampledemo--featurestermion,formatter
136
143
```
137
144
145
+
### Configuration by environment variables
146
+
147
+
`tui.logger` uses `env-filter` crate to support configuration by a string or an environment variable.
148
+
This is an opt-in by call to one of these two functions.
*[Kevin](https://github.com/doesnotcompete) for providing patch in [#71](https://github.com/issues/71)
261
276
*[urizennnn](https://github.com/urizennnn) for providing patch in [#72](https://github.com/issues/72)
262
277
*[Earthgames](https://github.com/Earthgames) for providing patch in [#84](https://github.com/issues/84) to fix panic for unicode characters
263
-
*[Reinier Balt](https://github.com/Irbalt) for providing patch in [#90](https://github.com/issues/90) to add attributes of the current span for tracing subscriber
//! I have stumbled over an excellent AI-generated description of `tui-logger`, which provides surprisingly deep and (mostly) correct implementation details.
16
+
//! It would have costed me many days to write an equally good description with so many details and diagrams.
17
+
//! This docu can be found [here](https://deepwiki.com/gin66/tui-logger).
18
+
//!
15
19
//! ## Important note for `tui`
16
20
//!
17
21
//! The `tui` crate has been archived and `ratatui` has taken over.
@@ -36,6 +40,7 @@
36
40
//! - [X] `slog` support, providing a Drain to integrate into your `slog` infrastructure
37
41
//! - [X] `tracing` support
38
42
//! - [X] Support to use custom formatter for log events
43
+
//! - [X] Configurable by environment variables
39
44
//! - [ ] Allow configuration of target dependent loglevel specifically for file logging
40
45
//! - [X] Avoid duplicating of module_path and filename in every log record
41
46
//! - [ ] Simultaneous modification of all targets' display/hot logging loglevel by key command
@@ -131,6 +136,16 @@
131
136
//! cargo run --example demo --features termion,formatter
132
137
//! ```
133
138
//!
139
+
//! ## Configuration by environment variables
140
+
//!
141
+
//! `tui.logger` uses `env-filter` crate to support configuration by a string or an environment variable.
142
+
//! This is an opt-in by call to one of these two functions.
0 commit comments