Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/siaexplains/logmog

logmog is an open-source logger for nodejs!
https://github.com/siaexplains/logmog

javascript nodejs npm npm-package

Last synced: 10 days ago
JSON representation

logmog is an open-source logger for nodejs!

Awesome Lists containing this project

README

        

# Logmog

Logmog is an open-source javascript logging library which is suitable for all kinds of javascript apps, such as reactjs, nodejs, electron, etc.

Inspired by:

- [winston](http://npmjs.org/winston)
- [morgan ](http://npmjs.org/express)

## Final stable version

- Verion 1.1.7 is final version
to check other version feature-list: ([changelogs.md](changelogs.md))

## Run Demo

To run and test logog use these following commands:

nodemon demo.js

or

node demo.js

# Logging as Middleware

You can use logmog as a middleware in `expressjs`:

const express = require('express');
const { Logger, logmid } = require('logmog');

let logmog = new Logger(true);
let app = express();
app.use(logmid('low'));

[codewithsia.com](https://codewithsia.com)