genode/libports/src/server/fs_log
Norman Feske 6575856624 os: Split Session_label from Session_policy
By splitting Session_policy into two classes, we make it more flexible.
Originally, the constructor accepted solely an args string, which made it
unusable for situations where we already have extracted the session
label (e.g., stored in the session meta data of a server). Now, the
extraction of the label from the args string is performed by the new
Session_label class instead, which, in turn, can be passed to the
constructor of Session_policy.

This change causes a minor API change. The following code

  Session_policy policy(session_args);

Must be turned into

  Session_label  label(session_args);
  Session_policy policy(label);
2013-09-23 14:25:59 +02:00
..
main.cc os: Split Session_label from Session_policy 2013-09-23 14:25:59 +02:00
README Add a service to log into a file 2013-05-10 11:16:13 +02:00
target.mk Add a service to log into a file 2013-05-10 11:16:13 +02:00

LOG server that writes log messages onto a file system.

Using this component, log messages of different processes can be redirected
to files on a file-system service. The assignment of processes to files can
be expressed in the configuration as follows:

! <start name="fs_log">
!   <resource name="RAM" quantum="2M"/>
!   <provides><service name="LOG"/></provides>
!   <config>
!     <policy label="noux"    file="/noux.log" />
!     <policy label="noux ->" file="/noux_process.log" />
!   </config>
! </start>

In this example, all messages originating from the noux process are directed
to the file '/noux.log'. All messages originating from children of the noux
process end up in the file '/noux_process.log'.