diff options
author | Tobias Waldvogel <tobias.waldvogel@gmail.com> | 2020-04-21 12:34:30 +0200 |
---|---|---|
committer | Tobias Waldvogel <tobias.waldvogel@gmail.com> | 2020-04-21 18:36:56 +0200 |
commit | 7eb63dfc275888b361c09bcec6d050a64a520520 (patch) | |
tree | dafcee213441143bea63dc5ce3fd6ac5473c54d5 /applications/luci-app-statistics/htdocs | |
parent | f76a020db1936e66551e1e33c6bbc1fb6bc727e3 (diff) |
luci-app-statistics: add syslog plugin
Signed-off-by: Tobias Waldvogel <tobias.waldvogel@gmail.com>
Diffstat (limited to 'applications/luci-app-statistics/htdocs')
-rw-r--r-- | applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/syslog.js | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/syslog.js b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/syslog.js new file mode 100644 index 000000000..7a58a16f5 --- /dev/null +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/view/statistics/plugins/syslog.js @@ -0,0 +1,34 @@ +'use strict'; +'require baseclass'; +'require form'; + +return baseclass.extend({ + title: _('Syslog Plugin Configuration'), + description: _('The SysLog plugin receives log messages from the daemon and dispatches them to syslog.'), + + addFormOptions: function(s) { + var o; + + o = s.option(form.Flag, 'enable', _('Enable this plugin')); + + o = s.option(form.ListValue, 'LogLevel', _('Log level'), _('Sets the syslog log-level.')); + o.value('err'); + o.value('warning'); + o.value('notice'); + o.value('info'); + o.value('debug'); + o.rmempty=false; + o.default = 'warning'; + + o = s.option(form.ListValue, 'NotifyLevel', _('Notify level'), _('Controls which notifications should be sent to syslog.')); + o.value('FAILURE'); + o.value('WARNING'); + o.value('OKAY'); + o.rmempty=false; + o.default = 'WARNING'; + }, + + configSummary: function(section) { + return _('Syslog enabled'); + } +}); |