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(logger): Additional internal logger options #71

Merged
merged 1 commit into from Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -204,6 +204,8 @@ logdna.init(LOGDNA_INGESTION_KEY, {
| `disabled` | `false` | boolean | Disable the logger from sending logs |
| `debug` | `false` | boolean | When debug is `true`, `logdna.<log, error, warn, info, debug>` methods will log to both LogDNA and to the console. When `false` these methods will only send to LogDNA. |
| `hooks` | `{ }` | object | Add function to manipulate log message. [See hooks.](#hooks-option) |
| `disableInternalErrorLogger` | `false` | boolean | Disable internal errors from being shown in the console |
| `internalErrorLoggerLevel` | `'log', 'info', 'debug', 'warn', 'error'` | string | By default internal errors are shown as `console.error`, use this option to change to a different console level |

## `sampleRate` option

Expand Down