Skip to content

Question: share a single log thread between multiple worker threads #2346

@hexchain

Description

@hexchain

It seems that if a pino logger with asynchronous transport is initialized in each threads created, each transport will create a separate thread. My understanding is that this is a bit wasteful, and probably going to cause issues if they are all writing to the same file. Is it possible to let the whole process share a single log thread instead?

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