tpc-logging
v1.2.1
Published
TPC Logging
Downloads
2
Keywords
Readme
TPC Logging
Logging library for tpc applications.
Usage
const logging = require('tpc-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}`)
})