good-logzio
v1.0.0
Published
Logz.io shipping for Good process monitor
Downloads
2
Readme
good-logzio
Logz.io shipping for Good process monitor
Usage
good-logzio
is a write stream used to send events to the Logz.io API. Under the hood, it uses logzio-nodejs
.
Available configuration options
token
- your logz.io tokenconfig
- configuration object passed tologzio-nodejs
(optional)type
- Log type. Help classify logs. Defaults to 'hapi-logzio'.- all of the available
logzio-nodejs
options
levelMap
- an object mapping event types to log levels (optional). Adds thelevel
property to logs.
Sample configuration
"myLogzioReporter": [
{
"module": "good-squeeze",
"name": "Squeeze",
"args": [{
"log": "*",
"request": "*",
"response": "*",
"error": "*",
"server": "*"
}]
}, {
"module": "good-logzio",
"args": [
"MYS3Cr3tT0K3N",
{
"type": "my-app"
},
{
"error": "error",
"request": "debug",
"log": "debug",
"response": "info",
"default": "info"
}
]
}
]