genode/repos/os/src/server/fs_log
Emery Hemingway a7a0d3fe63 Refactor Tup, flatten output directories
Make no attempt to replicate the depot layout.
2019-10-28 11:32:29 +01:00
..
main.cc Add missing override annotations 2019-02-19 11:12:11 +01:00
README Make label prefixing more strict 2016-11-30 13:37:07 +01:00
session.h Add missing override annotations 2019-02-19 11:12:11 +01:00
target.mk server/fs_log: improve client isolation 2016-08-29 17:29:34 +02:00
Tupfile Refactor Tup, flatten output directories 2019-10-28 11:32:29 +01: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
a log file at "init/nitpicker.log".

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.

When a default-policy node specifies a merge, all sessions are merged into
the file "/log".

:Example configuration:
! <start name="log_file">
!   <resource name="RAM" quantum="1M"/>
!   <provides><service name="LOG"/></provides>
!   <config>
!     <policy label_prefix="nic_drv" truncate="no"/>
!     <policy label_prefix="cli_monitor -> " merge="yes"/>
!     <default-policy truncate="yes"/>
!   </config>
! </start>