https://github.com/weirdpattern/logwiz
A log factory object for node
https://github.com/weirdpattern/logwiz
Last synced: 7 months ago
JSON representation
A log factory object for node
- Host: GitHub
- URL: https://github.com/weirdpattern/logwiz
- Owner: weirdpattern
- License: mit
- Created: 2016-06-16T04:14:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-28T22:24:34.000Z (over 9 years ago)
- Last Synced: 2025-03-24T06:52:15.445Z (11 months ago)
- Language: JavaScript
- Size: 105 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Log Factory
[](https://travis-ci.org/weirdpattern/log-factory)
[](https://coveralls.io/github/weirdpattern/log-factory?branch=master)
[](https://gemnasium.com/github.com/weirdpattern/log-factory)
[](https://github.com/Flet/semistandard)
[](#)
### Configuration
```json
{
"logwiz": {
"filters": {
"debug": {
"type": "level-filter",
"levels": [ "info", "debug" ]
}
},
"channels": {
"console": {
"type": "console-channel",
"output": "stdout",
"colorize": true,
"filters": [ "debug" ]
}
},
"loggers": {
"debug": {
"level": "all",
"channels": [ "console", {
"type": "file-channel",
"file": "errors.log",
"filters": [
{
"type": "level-range-filter",
"min": "error",
"max": "fatal"
}
]
} ]
}
}
}
}
```