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

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

Open
TheSecurityDev opened this issue Sep 20, 2024 · 1 comment
Open

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

TheSecurityDev opened this issue Sep 20, 2024 · 1 comment

Comments

@TheSecurityDev
Copy link

TheSecurityDev commented Sep 20, 2024

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?

@TheSecurityDev TheSecurityDev changed the title Pino custom levels are ignored Pino custom levels are ignored in @logtail/pino Sep 20, 2024
@curusarn
Copy link
Contributor

Hi @TheSecurityDev,

Thank you for reaching out!

You're right. Currently, there's no way to pass the custom log levels to Pino transport.
I'll pass this feedback on to the team to see if we can improve this.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants