-
Notifications
You must be signed in to change notification settings - Fork 0
CentralCfgInfo
Tony Woode edited this page Apr 8, 2015
·
1 revision
- The logger is running and logging to /var/log/openshare-.
- Consoled atm but will get daemonised later.
- Log requests should be equivalent to this command, which you should be able to run (variants of) and see entries place into logfiles on 192.168.1.27:
$ amqp-publish -u amqp://192.168.1.27/%2F -r logger -b"{text:'that was even'}"
- the
amqp-publish
command can be found in the ubuntuamqp-tools
package - yes, the %2F is necessary. Horrid, isn't it?
- the api spec specifies JSON for the body, but I note that actually existing code is sending strings
host: 192.168.1.27
exchange: /
routing-key: logger
- the logger does not reply
-
The logger receives a string for the
message
parameter which it parses as JSON. -
The
level
fields is recognised and used to set the log level.
* message: contents of parameter `message.text`
* timestamp
* level: contents of parameter `message.level`. One of:
debug,info,warn,error,fatal
-
If the
message
parameter is not in the correct format it is logged with an abusive message. -
There will be a "loggy"-style query interface to get the log contents.