@beforeyoubid/logger-adapter
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -6,2 +6,3 @@ import { consoleLogger } from './console'; | ||
import { flushAll, ensureFlushAll, ensureFlushAllCallback } from './util'; | ||
export { consoleLogger, logger, getLoggerObject, getLogParams, flushAll, ensureFlushAll, ensureFlushAllCallback }; | ||
import { MetricLogger } from './MetricLogger'; | ||
export { consoleLogger, logger, getLoggerObject, getLogParams, flushAll, ensureFlushAll, ensureFlushAllCallback, MetricLogger, }; |
@@ -32,2 +32,5 @@ "use strict"; | ||
return _util1.ensureFlushAllCallback; | ||
}, | ||
MetricLogger: function() { | ||
return _metricLogger.MetricLogger; | ||
} | ||
@@ -40,3 +43,4 @@ }); | ||
var _util1 = require("./util"); | ||
var _metricLogger = require("./MetricLogger"); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjb25zb2xlTG9nZ2VyIH0gZnJvbSAnLi9jb25zb2xlJztcbmltcG9ydCB7IGxvZ2dlciB9IGZyb20gJy4vbG9nZ2VyJztcbmltcG9ydCB7IGdldExvZ2dlck9iamVjdCB9IGZyb20gJy4vbG9nZ2VyL3V0aWwnO1xuaW1wb3J0IHsgZ2V0TG9nUGFyYW1zIH0gZnJvbSAnLi9wYXJhbXMnO1xuaW1wb3J0IHsgZmx1c2hBbGwsIGVuc3VyZUZsdXNoQWxsLCBlbnN1cmVGbHVzaEFsbENhbGxiYWNrIH0gZnJvbSAnLi91dGlsJztcblxuLy8gRXhwb3J0IGFsbCB0aGUgZnVuY3Rpb25zXG5leHBvcnQgeyBjb25zb2xlTG9nZ2VyLCBsb2dnZXIsIGdldExvZ2dlck9iamVjdCwgZ2V0TG9nUGFyYW1zLCBmbHVzaEFsbCwgZW5zdXJlRmx1c2hBbGwsIGVuc3VyZUZsdXNoQWxsQ2FsbGJhY2sgfTtcbiJ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ZQUFXQzs7UUFDNUIsSUFBTXRCLE9BQU87WUFDWEMsT0FBQUE7WUFDQW9CLFdBQUFBO1lBQ0FDLFdBQUFBO1lBQ0FDLE1BQUFBO1FBQ0Y7UUFFQSxJQUFJLENBQUNiLE1BQU0sQ0FBQ0ssR0FBRyxDQUFDSyxTQUFTcEI7UUFDekJnQixTQUFTLElBQUksRUFBRSxJQUFJO0lBQ3JCO1dBbkVXdEI7RUFBd0I4Qix5QkFBUyJ9 |
{ | ||
"name": "@beforeyoubid/logger-adapter", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "A platform logger module to send the log messages to Mezmo (formerly LogDNA).", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -54,2 +54,4 @@ # Mezmo (Formerly LogDNA) Logger Adapter | ||
- ![V2 Diagram](./docs/v2-diagram.png) | ||
- **v2.0.3 onwards** | ||
- Adding generic `MetricLogger` | ||
@@ -169,3 +171,3 @@ ## 1) Use Console Logger | ||
const logger = getLoggerObject('[CoreLogicListingProvider]'); | ||
const logger = getLoggerObject('[Your Custom Prefix]'); | ||
@@ -178,1 +180,24 @@ logger.info('the usual log string...') | ||
returns with debug, info, warn, error functions. | ||
## MetricLogger | ||
**Motivation:** | ||
- Mezmo is one of the leading telemetry tools for logging and debugging | ||
- We can also utilise Mezmo to collect, process and display business metrics based on log messages without extra fee on | ||
the existing plan | ||
- The setup is very simple and Mezmo does this out of the box | ||
**How does it work?** | ||
- When a JSON string (e.g. `JSON.stringify(jsonObject)`) is sent to Mezmo, Mezmo is smart enough to parse this into a | ||
json object and index them automatically | ||
- With this process, we can search for any value in the object and/or create a dashboard on any specific metric we see | ||
fit | ||
- The only drawback, the data retention is usually limited to 30 days as per the data retention policy on the account | ||
**How to use:** | ||
- [Sample Metric](./samples/metricLogger.sample.ts) | ||
- [Sample 1](./samples/metricLogger1.sample.ts) | ||
- [Sample 2](./samples/metricLogger2.sample.ts) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
166877
38
2023
201