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

feat: add pino-caller support #15

Merged
merged 2 commits into from
Sep 18, 2024
Merged

feat: add pino-caller support #15

merged 2 commits into from
Sep 18, 2024

Conversation

almog8k
Copy link
Contributor

@almog8k almog8k commented Sep 18, 2024

Question Answer
Bug fix
New feature
Breaking change
Deprecations
Documentation
Tests added
Chore

Further information:
Add support of pino-caller.
pino-caller adds the call site of each log message to the log output

Copy link
Collaborator

@CptSchnitz CptSchnitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

READMEEEEEEEE (add a line plz)

src/index.ts Outdated
Comment on lines 25 to 26
const loggerWithCaller = pinoCaller(logger);
return options?.pinoCaller === true ? loggerWithCaller : logger;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const loggerWithCaller = pinoCaller(logger);
return options?.pinoCaller === true ? loggerWithCaller : logger;
return options?.pinoCaller === true ? pinoCaller(logger) : logger;

i think running less code > clarity in this case.
what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i agree

@almog8k
Copy link
Contributor Author

almog8k commented Sep 18, 2024

READMEEEEEEEE (add a line plz)

Added

@CptSchnitz CptSchnitz merged commit f3d26ea into master Sep 18, 2024
4 checks passed
@CptSchnitz CptSchnitz deleted the pino-caller branch September 18, 2024 12:45
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

Successfully merging this pull request may close these issues.

2 participants