Skip to content

Add logging in Express #10

Description

@martindsouza

Can use Morgan which will produce Apache style documentation.

Example of how to implement: (add to app.js)

var morgan = require('morgan');

...
app.use(morgan('short')); // TODO change this to configuration option as to type

There's also some examples of how to output to a file and use a rotation log.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions