stormwinstonexpress
v1.1.0
Published
Preconfigured winston express with syntax coloring and file logging ## Usage sample: From command line: ``` npm install stormwinstonexpress ``` Then from the code: ``` const swe = require('stormwinstonexpress');
Downloads
4
Readme
stormwinston
Preconfigured winston express with syntax coloring and file logging
Usage sample:
From command line:
npm install stormwinstonexpress
Then from the code:
const swe = require('stormwinstonexpress');
const port = process.env.PORT || 3000;
const app = express();
app.use(swe);
app.listen(port, () => {
console.log(`listening on port ${port}`);
});