You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(core): Deprecate logger in favor of debug (#17040)
resolves#16905
also renames the file to be `debug-logger.ts` instead of `logger.ts` to
make usage inside `@sentry/core` a little easier to understand.
Added a note to `MIGRATION.md`, but let me know if I should remove that.
---------
Co-authored-by: Francesco Gringl-Novy <[email protected]>
The internal SDK `logger` export from `@sentry/core` has been deprecated in favor of the `debug` export. `debug` only exposes `log`, `warn`, and `error` methods but is otherwise identical to `logger`. Note that this deprecation does not affect the `logger` export from other packages (like `@sentry/browser` or `@sentry/node`) which is used for Sentry Logging.
15
+
16
+
```js
17
+
import { logger, debug } from'@sentry/core';
18
+
19
+
// before
20
+
logger.info('This is an info message');
21
+
22
+
// after
23
+
debug.log('This is an info message');
24
+
```
25
+
10
26
# Upgrading from 8.x to 9.x
11
27
12
28
Version 9 of the Sentry JavaScript SDK primarily introduces API cleanup and version support changes.
0 commit comments