luci-mod-admin-full: add log_file and log_proto support
authorJohn Crispin <john@phrozen.org>
Thu, 30 Jun 2016 01:18:49 +0000 (03:18 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 30 Jun 2016 09:54:53 +0000 (11:54 +0200)
Signed-off-by: John Crispin <john@phrozen.org>
[Jo-Philipp Wich: remove file datatype constraint]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-admin-full/luasrc/model/cbi/admin_system/system.lua

index 2874b5607e31716051393cc14fc6364f9ff661b5..c7fdfcddba39ddf2523294291aa58e6957d9053f 100644 (file)
@@ -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"))