6575856624
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); |
||
---|---|---|
.. | ||
main.cc | ||
README | ||
target.mk |
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'.