express-loggerr
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

HTTP logger middleware for Express

Skills

TypeScript NodeJS Express

HTTP logger middleware for Express with implemented color highlighting and support for deuteranomaly and protanomaly (two types of red-green color blindness), published as hybrid NPM package

Installation

npm i express-loggerr

Import

(ES Modules)

import { expressLogger } from 'express-loggerr';

Import

(CommonJS Modules)

const { expressLogger } = require('express-loggerr');

Implementation

const app = express();
app.use(expressLogger('selectedLogger'));

Reference

CLF

Selects NCSA Common Log Format (CLF)

app.use(expressLogger('CLF'));

UTC

Selects modified CLF with Universal Coordinated Time (UTC)

app.use(expressLogger('UTC'));

W3C

Selects W3C Extended format

app.use(expressLogger('W3C'));

Dev

Selects logger for development

app.use(expressLogger('Dev'));

Readme

Keywords

none

Package Sidebar

Install

npm i express-loggerr

Weekly Downloads

0

Version

1.1.2

License

none

Unpacked Size

24.6 kB

Total Files

24

Last publish

Collaborators

  • lukasjnsson