https://github.com/riesinger/loggos
Simple nodejs logging library
https://github.com/riesinger/loggos
Last synced: 4 months ago
JSON representation
Simple nodejs logging library
- Host: GitHub
- URL: https://github.com/riesinger/loggos
- Owner: riesinger
- Created: 2016-04-04T11:23:21.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-14T12:14:09.000Z (about 10 years ago)
- Last Synced: 2024-12-31T12:26:58.262Z (over 1 year ago)
- Language: CoffeeScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#loggos - the simple nodejs logger for your amazing projects!
Nlog is a simple logging library to get you up and running as fast as possible.
It features:
- colored ouput
- logging to a file and to stdout/stderr
- asynchronous writing to logfiles, to speed up things
## Installation
To use loggos, just do a simple `npm install --save loggos`.
## Examples
```javascript
var Log = require("loggos");
log = new Log("logfile.log");
//By default, loggos will stop writing to stdout, when a logfile is specified.
log.setWriteToConsole(true);
log.info("Tag", "This is an informational message");
```
For more usage examples, browse the source, I think I have commented enough :)