good-logmatic
npm i -S good-logmatic
Config
You need to pass down two config objects to good-logmatic for him to work.
- The first object represent good-squeeze events
- The second represent the node-logmatic configuration object
token: undefined // Required : your Logmatic token tcp: host: 'api.logmatic.io' port: 10515 retryTimeout: 5000 // when failling to reconnect, this timeout if used for each retry defaultProps: {} // add a default value to your log messages (like appname or hostname) logger: //Define the logging functions used debug: _noop info: consolelog warn: consolewarn error: consoleerror
Notes:
- There is only one mandatory field for you to define : your logmatic token
- The
tcp
object is passed to node tls.connect.
Examples
var GoodLogmatic = ;hapi;
var GoodLogmatic = ;hapi;