tpc-logging
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

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}`)
})

Readme

Keywords

none

Package Sidebar

Install

npm i tpc-logging

Weekly Downloads

1

Version

1.2.1

License

UNLICENSED

Unpacked Size

11.5 kB

Total Files

7

Last publish

Collaborators

  • johansteffner
  • svant
  • the-platform-companion