@dineroregnskab/express-logging
TypeScript icon, indicating that this package has built-in type declarations

1.6.0 • Public • Published

@dineroregnskab/express-logging

Logging utilities for Express framework.

const { expressErrorHandler, expressLogger } = require('@dineroregnskab/express-logging');
const express = require('express');

const app = express();
const serviceName = "ServiceName";
const version = "1.0.0";

app.use(expressLogger(serviceName, version));

app.get('/', (req, res) => {
  res.send('Hello World');
});

app.use(expressErrorHandler(serviceName, version));

// Start server
app.listen(3000)

Readme

Keywords

none

Package Sidebar

Install

npm i @dineroregnskab/express-logging

Weekly Downloads

7

Version

1.6.0

License

ISC

Unpacked Size

8.19 kB

Total Files

14

Last publish

Collaborators

  • loubnielsen
  • daneskildsen
  • bgpedersen
  • larsnikolajsen
  • baunegaard