mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-05-28 22:20:53 +00:00
2233683410
This creates a custom logger for the log crate which logs everything to a file (/tmp/starship/session_$STARSHIP_SESSION_KEY.log) and it logs everything above Warn to stderr, but only if the log file does not contain the line that should be logged resulting in an error or warning to be only logged at the first starship invocation after opening the shell.
15 lines
229 B
Rust
15 lines
229 B
Rust
// Lib is present to allow for benchmarking
|
|
pub mod config;
|
|
pub mod configs;
|
|
pub mod context;
|
|
pub mod formatter;
|
|
pub mod logger;
|
|
pub mod module;
|
|
pub mod modules;
|
|
pub mod print;
|
|
pub mod segment;
|
|
mod utils;
|
|
|
|
#[cfg(test)]
|
|
mod test;
|