mirror of
https://github.com/openwrt/routing.git
synced 2025-02-23 10:26:14 +00:00
Compile tested: mips_24kc, arm_cortex-a9_vfpv3-d16, i386_pentium4, x86_64, i386_pentium-mmx, mipsel_24kc Signed-off-by: Patrick Grimm <patrick@lunatiki.de>
38 lines
1.2 KiB
JavaScript
38 lines
1.2 KiB
JavaScript
'use strict';
|
|
'require view';
|
|
'require form';
|
|
|
|
return view.extend({
|
|
render: function() {
|
|
var m, s, o;
|
|
|
|
m = new form.Map('olsrd2', 'OLSRD2 Daemon');
|
|
|
|
s = m.section(form.TypedSection, 'log', _('OONF Logging'));
|
|
s.anonymous = true;
|
|
s.addremove = false;
|
|
|
|
o = s.option(form.Flag, "syslog", _("syslog are boolean options that activate or deactivate the syslog Logging Target."), "");
|
|
o.optional = true;
|
|
o.datatype = "bool";
|
|
o = s.option(form.Flag, "stderr", _("stderr are boolean options that activate or deactivate the stderr Logging Target."), "");
|
|
o.optional = true;
|
|
o.datatype = "bool";
|
|
o = s.option(form.Value, "file", _("file asks for a filename for logging output"),"Filename");
|
|
o.rmempty = false;
|
|
o.optional = true;
|
|
o.placeholder = "/tmp/olsrd2.log";
|
|
o.datatype = "string";
|
|
o = s.option(form.Value, "debug", _("debug ask for a list of Logging Sources that will be logged by the OONF Core Logging Targets."));
|
|
o.rmempty = false;
|
|
o.optional = true;
|
|
o.datatype = "string";
|
|
o = s.option(form.Value, "info", _("info ask for a list of Logging Sources that will be logged by the OONF Core Logging Targets."));
|
|
o.rmempty = false;
|
|
o.optional = true;
|
|
o.datatype = "string";
|
|
|
|
return m.render();
|
|
}
|
|
});
|