Open mikart143 opened 4 years ago
That's something to do with color handling, which is automatically not being done when logging to non-TTY device. I wonder if it's slog printing something weird, or just clion terminal emulator.
When using other loggers like fern, everything works perfect. I also turn on terminal emulation in clion. It looks like slog handle colors in the other way.
term
crate is used for colors https://github.com/slog-rs/term/blob/5be2ff4895464b425c70a324302f9e9501d6a301/Cargo.toml#L22
Hello! I noticed very strange bug. My code:
Logs in file looks good and also when I run app from linux terminal too. Clion: 2020.2.1