Shift X2 status from legacy to archived
[khatus.git] / msg_out.awk
... / ...
CommitLineData
1BEGIN {
2 OFS = Msg_fs ? Msg_fs : "|"
3 Kfs = Key_fs ? Key_fs : ":"
4}
5
6function msg_out_ok(key, val) {
7 msg_out("OK", key, val, "/dev/stdout")
8}
9
10function msg_out_info(location, msg) {
11 msg_out("INFO", location, msg, "/dev/stderr")
12}
13
14function msg_out_error(location, msg) {
15 msg_out("ERROR", location, msg, "/dev/stderr")
16}
17
18function msg_out(status, key, val, channel) {
19 print(status, Module, key, val) > channel
20}
This page took 0.025878 seconds and 5 git commands to generate.