blob: f2ce2fb959f8b381fb45cf2625b4c26117677b4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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(s) {
let 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(section) {
return _('Syslog enabled');
}
});
|