genode/repos/os/src/server/fs_log
Christian Helmuth 24b1f269be Remove Packet_ref from File_system::Packet_descriptor
The intention of Packet_ref was to allow clients to place opaque
references into the packet descriptor itself, which could be observed on
packet completion. Currently no component in our sources uses this
feature and beyond that it is questionable if it should be used at all:
If the server tampers with the ref the client may easily be confused
into observing an incorrect or invalid context. It seems better to
remove the opaque context from the descriptor and leave the actual
implementation to the client and its needs.
2015-09-30 12:20:37 +02:00
..
log_file.h Remove Packet_ref from File_system::Packet_descriptor 2015-09-30 12:20:37 +02:00
main.cc fs_log: merge option, increase message buffer 2015-09-30 12:20:36 +02:00
README fs_log: merge option, increase message buffer 2015-09-30 12:20:36 +02:00
session.h fs_log: merge option, increase message buffer 2015-09-30 12:20:36 +02:00
target.mk fs_log: new log file server using native FS sessions 2015-09-30 12:20:36 +02: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.

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