Skip to content

Pino custom levels are ignored in @logtail/pino #123

@TheSecurityDev

Description

@TheSecurityDev

Pino allows you to customize the log levels, like:

const additionalLevels = {
  notice: 35, // Between info and warn
  critical: 55, // Between error and fatal
};

const pinoLogger = pino(
  {
    // ...other options
    customLevels: additionalLevels
  }
);

However, there doesn't seem to be any way to pass these options to the @logtail/pino transport. It's just using its own hard-coded log levels instead. Is there any way to change this?

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