Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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!
- Host: GitHub
- URL: https://github.com/siaexplains/logmog
- Owner: SiaExplains
- Created: 2019-10-27T15:06:27.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-03T06:10:50.000Z (over 4 years ago)
- Last Synced: 2025-01-15T11:39:01.773Z (11 days ago)
- Topics: javascript, nodejs, npm, npm-package
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelogs.md
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)