mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-02-03 11:00:16 -05:00
9745d150e7
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