1.2.3 • Published 2 years ago

@roboten/logging v1.2.3

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
2 years ago

Roboten Logging

Logging library for roboten applications.

Usage

const logging = require('@roboten/logging')
const express = require('express')
const app = express()
const port = 3000

const log = logging.createLogger()

app.use(logging.middleware)

app.get('/', (req, res) => {
  log.info('Processing request')
  res.send('Hello World!')
})

app.listen(port, () => {
  log.notice(`Example app listening at: http://localhost:${port}`)
})