Update README
[khatus.git] / src / awk / lib / msg_out.awk
CommitLineData
03c229bf
SK
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) {
23fbde84 19 print(status, Module, key, val) > channel
03c229bf 20}
This page took 0.017804 seconds and 4 git commands to generate.