-
Notifications
You must be signed in to change notification settings - Fork 129
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
RUMM-2173 Add log level threshold option #867
Conversation
630d8ff
to
7b83ccc
Compare
docs/log_collection.md
Outdated
.build() | ||
``` | ||
{{% /tab %}} | ||
{{% tab "Objective-C" %}} | ||
```objective-c | ||
DDLoggerBuilder *builder = [DDLogger builder]; | ||
[builder sendNetworkInfo:YES]; | ||
[builder setWithDatadogReportingThreshold:.info] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like there may be a missing semicolon at the end of this line. Could you confirm and update if needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK 👍 with a blocker on public API typo. I also left a suggestion on scoping the change to only Logger
, without touching Crash Reporting code - LTMWDYT.
Sources/Datadog/Logger.swift
Outdated
/// set the minim log level reported to Datadog servers. | ||
/// Any log with a level equal or above to the threshold will be sent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// set the minim log level reported to Datadog servers. | |
/// Any log with a level equal or above to the threshold will be sent | |
/// Set the minim log level reported to Datadog servers. | |
/// Any log with a level equal or above to the threshold will be sent. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine, thanks! 👌
f384e22
to
c6499e0
Compare
What and why?
Add a way to filter logs per status before they're sent to Datadog.
How?
Added an option in the logger builder, that's passed to the LogFileOutput.
Review checklist