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

Fix TypeScript type definitions for logger config #1059

Merged
merged 3 commits into from
Aug 24, 2020

Conversation

dandean
Copy link
Contributor

@dandean dandean commented Aug 21, 2020

What does this PR do?

PR #999 added startup logging. In doing so it added support for additional logging methods.

Motivation

While integrating dd-trace into my project I saw some nice debugging messages in the console. When I provided my own logger, these messages disappeared. After digging through the code I figured out that these new startup logging messages are being sent to logger methods I wasn't providing because they are undocumented, and the TypeScript types do not recognize them.

This patch makes it so those new methods are a known part of the logger object shape.

Plugin Checklist

dandean and others added 3 commits August 21, 2020 15:51
PR DataDog#999 added startup logging. In doing so it added support for additional logging methods.
@dandean dandean marked this pull request as ready for review August 21, 2020 23:13
@dandean dandean requested a review from a team as a code owner August 21, 2020 23:13
@rochdev rochdev merged commit ef74c71 into DataDog:master Aug 24, 2020
@rochdev
Copy link
Member

rochdev commented Aug 24, 2020

The tracer logger is supposed to fallback to debug and error for info and warn when they were not implemented by the configured logger, so there may be more to this.

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

Successfully merging this pull request may close these issues.

None yet

2 participants