npm.io
1.0.2 • Published 6 years ago

loki-logger

Licence
ISC
Version
1.0.2
Deps
1
Size
2 kB
Vulns
0
Weekly
0

loki-logger

loki-logger is the wrapper for the winston, with the required configuration for the loki.

sample code

const logger = require('loki-logger')
// for logging errors
try{
  throw Error('Handled Error')
} catch(err){
  logger.error(err)
}

// for debugging, use below pattern for concating objects to the message
logger.debug('debugging object: %o', {hi: 'hello'})