exframe-logger
TypeScript icon, indicating that this package has built-in type declarations

3.8.5 • Public • Published

exframe Logging Module

Application level logging for the Harmony Framework. It uses Winston at the core.

Log Levels

  • debug
  • info
  • warn
  • error

Use

const Logger = require("logger").create();

Examples

logger.info('Info Message')
logger.info('Test error', { metadata: "test-log", count: 1 })
logger.error('Error message', { metadata: "test-error", count: 1 })
logger.warn('Warning message', { metadata: "test-warning" })
logger.debug("Debug message", { metadata: "test-debug", count: 1 })

Tests

npm run test

Readme

Keywords

none

Package Sidebar

Install

npm i exframe-logger

Weekly Downloads

1,858

Version

3.8.5

License

ISC

Unpacked Size

16.2 kB

Total Files

12

Last publish

Collaborators

  • exzeo_usa
  • exzeodevops