Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(logger): optional subcontext #1046

Merged
merged 1 commit into from
Jun 24, 2019
Merged

feat(logger): optional subcontext #1046

merged 1 commit into from
Jun 24, 2019

Commits on Jun 24, 2019

  1. feat(logger): optional subcontext

    This adds an optional subcontext for loggers to print on every log
    statement. This is used in place of wrapping the log methods for the lnd
    loggers to display currency, but can also be reused in a generic fashion
    going forward.
    
    Before:
    
    ```
    19/06/2019 15:44:43.634 [LND] info: BTC: trying to verify connection...
    ```
    
    After:
    
    ```
    19/06/2019 15:44:43.634 [LND-BTC] info: trying to verify connection...
    ```
    sangaman committed Jun 24, 2019
    Configuration menu
    Copy the full SHA
    f894a7c View commit details
    Browse the repository at this point in the history