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: add component logger #2198

Merged
merged 2 commits into from
Nov 7, 2023
Merged

feat: add component logger #2198

merged 2 commits into from
Nov 7, 2023

Commits on Nov 6, 2023

  1. feat: add per-component logger

    Adds a `ComponentLogger` to `@libp2p/logger` with implementations that
    prefixes all log messages with a truncated peer id or an arbitrary
    string.
    
    When running multiple libp2p instances simultaneously it's often hard
    to work out which log messages come from which instance. This will
    solve this problem.
    
    Refs #2105
    achingbrain committed Nov 6, 2023
    Configuration menu
    Copy the full SHA
    bf3bc2c View commit details
    Browse the repository at this point in the history
  2. chore: dedupe deps

    achingbrain committed Nov 6, 2023
    Configuration menu
    Copy the full SHA
    ac8a92d View commit details
    Browse the repository at this point in the history