mirror of
https://github.com/wez/wezterm.git
synced 2024-12-28 07:55:03 +03:00
a7cdd46720
I wanted to use the Target::Pipe feature of env_logger so that we could log to a log file as well as stderr, but it just doesn't work (https://github.com/env-logger-rs/env_logger/issues/208). Since we were already composing over the top of the logger in order to capture data for our ringlog, this commit embraces that and makes our logger responsible for both stderr and log file printing. Thankfully, we can use the filter parsing code from env_logger to avoid having to get too crazy with this. Logs are stored in the runtime directory and look something like: /run/user/1000/wezterm/wezterm-gui-log-596324.txt Logs are collected on all platforms. There isn't currently a thing to clean up logs.
26 lines
565 B
TOML
26 lines
565 B
TOML
[package]
|
|
name = "env-bootstrap"
|
|
version = "0.1.0"
|
|
authors = ["Wez Furlong <wez@wezfurlong.org>"]
|
|
edition = "2018"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
chrono = {version="0.4", features=["unstable-locales"]}
|
|
config = { path = "../config" }
|
|
dirs-next = "2.0"
|
|
lazy_static = "1.4"
|
|
libc = "0.2"
|
|
log = "0.4"
|
|
env_logger = "0.9"
|
|
termwiz = { path = "../termwiz" }
|
|
|
|
[target."cfg(windows)".dependencies]
|
|
winapi = "0.3"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
cocoa = "0.20"
|
|
objc = "0.2"
|
|
|