1.2.3 • Published 2 years ago
@roboten/logging v1.2.3
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}`)
})