Skip to content
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.

Logging

Christian Smith edited this page Jul 6, 2014 · 3 revisions

Anvil Connect supports logging to file, console, syslog and logstash via bucker. To configure logging, add an logger options object to your config.ENV.json file.

{
  "issuer": "https://anvilconnect-12629.onmodulus.net",
  "client_registration": "dynamic",
  "logger": { 
    "file": {
      "filename": "/path/to/file",
      "format": ":level :time :data",
      "timestamp": "HH:mm:ss",
      "accessFormat": ":time :level :method :status :url"
    },
    "console": {
      "color": false
    },
    "syslog": {
      "host": "localhost",
      "port": 514,
      "facility": 18
    },
    "logstash": {
      "redis": true,
      "udp": true,
      "host": "127.0.0.1",
      "port": 12345,
      "key": "bucker_logs",
      "channel": true,
      "list": false,
      "source_host": "bacon.com"
    }
  }
}