diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-06-15 23:09:44 +0200 |
commit | 72231250ed81e10d66bfe70701e64fa5fe50f712 (patch) | |
tree | 2728bba1131a6f6e5bdf95afec7d7ff9358dac50 /logd/README.server.protocol |
Publish
Diffstat (limited to 'logd/README.server.protocol')
-rw-r--r-- | logd/README.server.protocol | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/logd/README.server.protocol b/logd/README.server.protocol new file mode 100644 index 00000000000..256c6cfd7f7 --- /dev/null +++ b/logd/README.server.protocol @@ -0,0 +1,42 @@ +Protocol for talking to the log server: +(nothing implemented in logd yet). + +Pure line-based text protocol. Tcp to some port on the log server: + +From log daemon (or anything, really) to server: + +service <service> +component <service> <component> +state <service> <component> <levels> + + +This tells the log daemon that service <service> exists, and that it +has a component named <component>. + +<levels> syntax: + +fatal=forward,error=forward,warning=store,info=store,event=forward,debug=off,spam=off + +ie: level=<status>[,...]* + +Where <status> is one of: +forward : store and send to log server +noforward : do not send to logserver (only applicable to setdefaultstate) +store : store locally only (to file) +off : do not even generate the message in the program + + +From server to whoever is interested: + +setdefaultstate <levels> + +setstate <service> <component> <levels> + +Exactly same syntax. Levels that are not mentioned are not modified. + +list services +list components <service> +list states <service> <component> + +(list commands are replied to with service/component/state commands). + |