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:
rishflab 2021-04-02 18:22:51 +11:00
parent e517c5934e
commit 9745d150e7
5 changed files with 150 additions and 43 deletions

View file

@ -1 +1,2 @@
pub mod command;
pub mod trace;