Switch to using NIH-log for the logger

This greatly simplifies the setup, provides more deterministic and
performant behavior, and allows for better WinDbg integration by
detecting its presence at runtime and by using the regular pretty log
format there as well.
This commit is contained in:
Robbert van der Helm
2023-03-01 19:01:15 +01:00
parent e3a923ff3b
commit c381744b47
3 changed files with 84 additions and 136 deletions

View File

@@ -85,11 +85,11 @@ crossbeam = "0.8"
lazy_static = "1.4"
log = { version = "0.4", features = ["std", "release_max_level_info"] }
midi-consts = "0.1"
nih_log = "0.1.0"
parking_lot = "0.12"
raw-window-handle = "0.4"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
simplelog = "0.12"
widestring = "1.0.0-beta.1"
# Used for the `assert_process_allocs` feature. This fork includes support for
@@ -130,11 +130,6 @@ libc = "0.2.124"
objc = "0.2.7"
core-foundation = "0.9.3"
[target.'cfg(target_os = "windows")'.dependencies]
# STDIO isn't reliable on Windows, so when hosting plugins in a DAW it may be
# useful to log using `OutputDebugString()` instead
win_dbg_logger = "0.1"
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.32"
features = [