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

RUMF-1497 Update logger API documentation #2098

Merged

Conversation

yannickadam
Copy link
Contributor

Motivation

Follow-up to #2029
Update documentation about new error parameter.

Changes

  • Updated the signature of the logger functions
  • Updated the generic logger function section to include errors
  • Added a new section showcasing the error parameter usage

I have gone over the contributing documentation.

@yannickadam yannickadam requested review from a team as code owners March 22, 2023 09:02
packages/logs/README.md Outdated Show resolved Hide resolved
@@ -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)
Copy link
Contributor

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

Copy link
Contributor

@cswatt cswatt left a 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

packages/logs/README.md Outdated Show resolved Hide resolved
packages/logs/README.md Outdated Show resolved Hide resolved
packages/logs/README.md Outdated Show resolved Hide resolved
packages/logs/README.md Outdated Show resolved Hide resolved
@yannickadam yannickadam merged commit 6ac3d71 into main Mar 27, 2023
@yannickadam yannickadam deleted the yannick.adam/RUMF-1497-logger-error-documentation-update branch March 27, 2023 14:35
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.

None yet

4 participants