We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
log.child()
When using the Logger type exported in a function to get a child logger, I am getting a TypeScript error because the redactOptions is not exported
Logger
redactOptions
Return type of exported function has or is using name 'redactOptions' from external module "node_modules/pino/pino" but cannot be named.
import type { type Logger } from "pino"; function foo(log: Logger) { return log.child({ name: "foo" }) }
The text was updated successfully, but these errors were encountered:
fix: export redactOptions type
ccd176c
Because it is used elsewhere in an exported type, it needs to be exported as well or else TypeScript throws an error Fixes pinojs#1840
fix: export redactOptions type (#1847)
a9b8e14
Because it is used elsewhere in an exported type, it needs to be exported as well or else TypeScript throws an error Fixes #1840
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
When using the
Logger
type exported in a function to get a child logger, I am getting a TypeScript error because theredactOptions
is not exportedThe text was updated successfully, but these errors were encountered: