summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2016-06-30 03:18:49 +0200
committerJo-Philipp Wich <jo@mein.io>2016-06-30 11:54:53 +0200
commitce3eb113f46695d028eb07063b88057402dd1237 (patch)
tree10718d6c03c5c11632cc8a81716bef49378c70c9 /modules/luci-mod-admin-full/luasrc/model/cbi/admin_system
parentd4176328dfcd5ed696d91c12c53c06416f05dfd4 (diff)
luci-mod-admin-full: add log_file and log_proto support
Signed-off-by: John Crispin <john@phrozen.org> [Jo-Philipp Wich: remove file datatype constraint] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-admin-full/luasrc/model/cbi/admin_system')
-rw-r--r--modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/system.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/system.lua b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/system.lua
index 2874b5607e..c7fdfcddba 100644
--- a/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/system.lua
+++ b/modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/system.lua
@@ -80,6 +80,14 @@ o.optional = true
o.placeholder = 514
o.datatype = "port"
+o = s:taboption("logging", ListValue, "log_proto", translate("External system log server protocol"))
+o:value("udp", "UDP")
+o:value("tcp", "TCP")
+
+o = s:taboption("logging", Value, "log_file", translate("Write system log to file"))
+o.optional = true
+o.placeholder = "/tmp/system.log"
+
o = s:taboption("logging", ListValue, "conloglevel", translate("Log output level"))
o:value(8, translate("Debug"))
o:value(7, translate("Info"))