@leaflink/snitch 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Simple and extensible browser logging, inspired by [Winston](https://github.com/
|
|
|
8
8
|
|
|
9
9
|
## Transports
|
|
10
10
|
|
|
11
|
-
Transports are a way of routing log messages to multiple destinations, with the ability to pre-process or format the message. `@leaflink/snitch` includes
|
|
11
|
+
Transports are a way of routing log messages to multiple destinations, with the ability to pre-process or format the message. `@leaflink/snitch` includes three transports by default (`console`, Sentry, and Datadog), but they can be extended using the `Transport` type exported by the logger.
|
|
12
12
|
|
|
13
13
|
## Log Levels
|
|
14
14
|
|
|
@@ -211,4 +211,4 @@ import { CustomTransport } from './custom-transport';
|
|
|
211
211
|
logger.add(new CustomTransport());
|
|
212
212
|
```
|
|
213
213
|
|
|
214
|
-
Note: You can add a custom transport in your project, but consider opening a PR in this repo instead!
|
|
214
|
+
Note: You can add a custom transport in your project, but consider opening a PR in this repo instead!
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leaflink/snitch",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Front end logging inspired by winston.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -18,6 +18,11 @@
|
|
|
18
18
|
"types": "./dist/transports/sentry.d.ts",
|
|
19
19
|
"import": "./dist/transports/sentry.js",
|
|
20
20
|
"default": "./dist/transports/sentry.js"
|
|
21
|
+
},
|
|
22
|
+
"./transports/datadog.js": {
|
|
23
|
+
"types": "./dist/transports/datadog.d.ts",
|
|
24
|
+
"import": "./dist/transports/datadog.js",
|
|
25
|
+
"default": "./dist/transports/datadog.js"
|
|
21
26
|
}
|
|
22
27
|
},
|
|
23
28
|
"engines": {
|