Skip to content

Consider creating chain-specific loggers #168

@fadeev

Description

@fadeev
          `logger.info("...", { chain: $chain })` can be significantly simplied with child loggers

https://github.com/winstonjs/winston?tab=readme-ov-file#creating-child-loggers

// top level in a file / module
const tonLogger = logger.child({chain: network.TON})

Originally posted by @swift1337 in #166 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions