mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-14 09:16:07 -04:00
Log at debug level to file
EnvFilter is applied globally. This means you cannot log at INFO level to the terminal and at DEBUG level to log files. To get a around this limitation I had to implement the layer trait on a new type and filter in the on_event() trait method. Each swap has its own log file denoted by its swap_id. The logger appends to the existing file when resuming a swap. Closes #278
This commit is contained in:
parent
e517c5934e
commit
9745d150e7
5 changed files with 150 additions and 43 deletions
|
@ -1 +1,2 @@
|
|||
pub mod command;
|
||||
pub mod trace;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue