Each application that wishes to use logging must choose a log service name; the following combinator should wrap the top level of the application:

Log messages are written to log-root/service/1.log, where

You can get the log path for a service:

New log entries are always sent to 1.log but Log rotation moves 1.log to 2.log, 2.log to 3.log, and so on.

with-logging ( service quot -- )

Log messages are written to log-root/service/1.log, where

• | log-root is resource:logs by default, but can be overriden with the log-root variable |

• | service is the service name |

You can get the log path for a service:

log-path ( service -- path )

log# ( path n -- path' )

New log entries are always sent to 1.log but Log rotation moves 1.log to 2.log, 2.log to 3.log, and so on.