Fork me on GitHub

pimatic-log-to-syslog by Peter Müller (crycode) | github | npm

pimatic-log-to-syslog

build status npm version

pimatic-log-to-syslog is a pimatic plugin that sends the pimatic log to the syslog.

If this plugin is enabled, any log message of pimatic is send to syslog. By default the log level (debug, info, warning, errro) of each message will be detected and the level of the syslog message will be set accordingly.

Please notice, that the first few log messages on pimatic startup can't be send to syslog. This is because the plugin must be loaded by pimatic to enable the syslog ability.

License

Licensed under GPL Version 2

Copyright (c) 2017 Peter Müller peter@crycode.de (https://crycode.de/)

Plugin Config Options

Log to syslog config options
OptionDescriptionDefault
name
string
The process name in syslog.
"pimatic"
detectLogLevel
boolean
Should we detect the level (error, warning, info, debug) of each log entry and pass it to syslog?
true
testLogLevel
boolean
Enable some test messages for info, debug, warning and error logging on startup.
false
pimatic-log-to-syslog is written by Peter Müller (crycode)