genode/repos/os/src/server/fs_log
Norman Feske b078224753 Replace Genode::strncpy by Genode::copy_cstring
- Since Genode::strncpy is not 100% compatible with the POSIX
  strncpy function, better use a distinct name.

- Remove bogus return value from the function, easing the potential
  enforcement of mandatory return-value checks later.

Fixes #3752
2020-05-27 11:56:45 +02:00
..
README Remove os/src/app/cli_monitor 2019-11-19 14:23:56 +01:00
main.cc Replace Genode::strncpy by Genode::copy_cstring 2020-05-27 11:56:45 +02:00
session.h Remove return value of Log_session::write 2020-05-05 13:51:05 +02:00
target.mk server/fs_log: improve client isolation 2016-08-29 17:29:34 +02:00

README

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="runtime -> " merge="yes"/>
!     <default-policy truncate="yes"/>
!   </config>
! </start>