blob: 256c6cfd7f729b5fcfd3e037ad3d5598f153b96d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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).
|