infront-logger 1.1.4 → 1.1.6
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 +9 -0
- package/dist/browser.d.ts +12 -0
- package/dist/browser.es.js +4176 -0
- package/dist/browser.umd.js +4180 -0
- package/package.json +14 -4
- package/dist/index.es.js +0 -598
- package/dist/index.umd.js +0 -602
package/README.MD
CHANGED
|
@@ -102,6 +102,15 @@ The logger supports both writhing to file and to console.
|
|
|
102
102
|
|
|
103
103
|
app.use(responseInterceptor);
|
|
104
104
|
|
|
105
|
+
### DatadogLogger
|
|
106
|
+
import {DatadogLogger} from 'infront-logger/browser';
|
|
107
|
+
let loggerOptions = {
|
|
108
|
+
clientToken: 'YOUR_DATADOG_CLIENT_TOKEN',
|
|
109
|
+
service : "SERVICE_NAME"
|
|
110
|
+
}
|
|
111
|
+
let logger = new DatadogLogger(loggerOptions);
|
|
112
|
+
logger.log("this is a test message", {prop1: "val1"});
|
|
113
|
+
|
|
105
114
|
|
|
106
115
|
### FastifyLogger
|
|
107
116
|
|