diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 16:28:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 16:28:20 +0000 |
commit | dcc721a95bef6f0d8e6d8775b8efe33e5aecd562 (patch) | |
tree | 66a2774cd0ee294d019efd71d2544c70f42b2842 /tests/omtcl.tcl | |
parent | Initial commit. (diff) | |
download | rsyslog-dcc721a95bef6f0d8e6d8775b8efe33e5aecd562.tar.xz rsyslog-dcc721a95bef6f0d8e6d8775b8efe33e5aecd562.zip |
Adding upstream version 8.2402.0.upstream/8.2402.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | tests/omtcl.tcl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/omtcl.tcl b/tests/omtcl.tcl new file mode 100644 index 0000000..ff12251 --- /dev/null +++ b/tests/omtcl.tcl @@ -0,0 +1,9 @@ +proc doAction {msg} { + set fd [open $::env(RSYSLOG_OUT_LOG) a] + puts $fd "message processed:" + foreach {k v} $msg { + puts $fd " $k: <<$v>>" + } + puts $fd " uppercase message: <<[string toupper [dict get $msg message]]>>" + close $fd +} |