summaryrefslogtreecommitdiff
path: root/templates/system/syslog/file
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-18 13:13:08 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-18 13:13:08 -0800
commit7b4251587a2465eccd511746c74bbe612d5434bf (patch)
treeb9fb84536c267c16de187384922c0c49d47a7e4a /templates/system/syslog/file
parentd7eaacabf16cd8ec8d23e0d1c0f6471707e07c88 (diff)
downloadvyatta-cfg-system-7b4251587a2465eccd511746c74bbe612d5434bf.tar.gz
vyatta-cfg-system-7b4251587a2465eccd511746c74bbe612d5434bf.zip
Fix help for syslog
Bug 5396 Make it clear that 'syslog file' takes a file name not a full path. Also make help text symmetrical for all logging options.
Diffstat (limited to 'templates/system/syslog/file')
-rw-r--r--templates/system/syslog/file/node.def5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/system/syslog/file/node.def b/templates/system/syslog/file/node.def
index 098bad2f..ba2fa44f 100644
--- a/templates/system/syslog/file/node.def
+++ b/templates/system/syslog/file/node.def
@@ -1,7 +1,10 @@
tag:
type: txt
help: Logging to a file
+
syntax:expression: pattern $VAR(@) "^[-a-zA-Z0-9_.]+$" ; "invalid file name $VAR(@)"
+
commit:expression: $VAR(./@/facility/@@) != ""; \
"At least one facility must be configured to log messages to file $VAR(./@)"
-val_help: Full path name of log file with leading slash
+
+val_help: Log file name in /var/log/user