1.0.0 • Published 7 years ago

good-logzio v1.0.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
7 years ago

good-logzio

Logz.io shipping for Good process monitor

Current Version

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 token
  • config - configuration object passed to logzio-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 the level 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"
            }
        ]
    }
]
1.0.0

7 years ago