-
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
RUMF-1497 Update logger API documentation #2098
RUMF-1497 Update logger API documentation #2098
Conversation
@@ -148,7 +148,7 @@ Options that must have a matching configuration when using the `RUM` SDK: | |||
After the Datadog browser logs SDK is initialized, send a custom log entry directly to Datadog with the API: | |||
|
|||
``` | |||
logger.debug | info | warn | error (message: string, messageContext = Context) | |||
logger.debug | info | warn | error (message: string, messageContext?: Context, error?: Error) |
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.
💬 suggestion: it could be nice to fix the signature in the onboarding snippet as well, cf https://app.datadoghq.com/logs/onboarding/client
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.
noting some minor style/syntax changes, otherwise looks good
Motivation
Follow-up to #2029
Update documentation about new
error
parameter.Changes
generic
logger function section to include errorsI have gone over the contributing documentation.