luci-app-olsrd2: New Package for OLSR2 configuration and status visualisation'
[feed/routing.git] / luci-app-olsrd2 / htdocs / luci-static / resources / view / olsrd2 / log.js
1 'use strict';
2 'require view';
3 'require form';
4
5 return view.extend({
6 render: function() {
7 var m, s, o;
8
9 m = new form.Map('olsrd2', 'OLSRD2 Daemon');
10
11 s = m.section(form.TypedSection, 'log', _('OONF Logging'));
12 s.anonymous = true;
13 s.addremove = false;
14
15 o = s.option(form.Flag, "syslog", _("syslog are boolean options that activate or deactivate the syslog Logging Target."), "");
16 o.optional = true;
17 o.datatype = "bool";
18 o = s.option(form.Flag, "stderr", _("stderr are boolean options that activate or deactivate the stderr Logging Target."), "");
19 o.optional = true;
20 o.datatype = "bool";
21 o = s.option(form.Value, "file", _("file asks for a filename for logging output"),"Filename");
22 o.rmempty = false;
23 o.optional = true;
24 o.placeholder = "/tmp/olsrd2.log";
25 o.datatype = "string";
26 o = s.option(form.Value, "debug", _("debug ask for a list of Logging Sources that will be logged by the OONF Core Logging Targets."));
27 o.rmempty = false;
28 o.optional = true;
29 o.datatype = "string";
30 o = s.option(form.Value, "info", _("info ask for a list of Logging Sources that will be logged by the OONF Core Logging Targets."));
31 o.rmempty = false;
32 o.optional = true;
33 o.datatype = "string";
34
35 return m.render();
36 }
37 });