2015-05-23 21:33:24 +00:00
|
|
|
LOG server that writes log messages onto a file system.
|
|
|
|
|
|
|
|
Log files are creating in a directory tree formed from session labels.
|
|
|
|
As an example the session label "init -> nitpicker" would create
|
2015-06-09 23:41:48 +00:00
|
|
|
a log file at "init/nitpicker.log".
|
2015-05-23 21:33:24 +00:00
|
|
|
|
2015-06-09 23:41:48 +00:00
|
|
|
The option to truncate files at the start of each LOG session is available
|
|
|
|
through session policy, as well the option to merge the logs of any
|
|
|
|
session matching a given policy. When a merged policy label contains a
|
|
|
|
trailing "->", the log filename takes the name of the next label element.
|
2015-05-23 21:33:24 +00:00
|
|
|
|
2016-08-23 15:05:37 +00:00
|
|
|
When a default-policy node specifies a merge, all sessions are merged into
|
|
|
|
the file "/log".
|
|
|
|
|
2015-05-23 21:33:24 +00:00
|
|
|
:Example configuration:
|
|
|
|
! <start name="log_file">
|
|
|
|
! <resource name="RAM" quantum="1M"/>
|
|
|
|
! <provides><service name="LOG"/></provides>
|
|
|
|
! <config>
|
2016-11-24 14:28:32 +00:00
|
|
|
! <policy label_prefix="nic_drv" truncate="no"/>
|
2015-11-27 15:13:14 +00:00
|
|
|
! <policy label_prefix="cli_monitor -> " merge="yes"/>
|
2016-08-23 15:05:37 +00:00
|
|
|
! <default-policy truncate="yes"/>
|
2015-05-23 21:33:24 +00:00
|
|
|
! </config>
|
|
|
|
! </start>
|
|
|
|
|