Commit | Line | Data |
---|---|---|
1 | BEGIN { | |
2 | OFS = Msg_fs ? Msg_fs : "|" | |
3 | Kfs = Key_fs ? Key_fs : ":" | |
4 | } | |
5 | ||
6 | function msg_out_ok(key, val) { | |
7 | msg_out("OK", key, val, "/dev/stdout") | |
8 | } | |
9 | ||
10 | function msg_out_info(location, msg) { | |
11 | msg_out("INFO", location, msg, "/dev/stderr") | |
12 | } | |
13 | ||
14 | function msg_out_error(location, msg) { | |
15 | msg_out("ERROR", location, msg, "/dev/stderr") | |
16 | } | |
17 | ||
18 | function msg_out(status, key, val, channel) { | |
19 | print(status, Module, key, val) > channel | |
20 | } |