IO
Memento writes all logs to any subtype of IO
including IOBuffer
s, LibuvStream
s, Pipe
s, File
s, etc. Memento also comes with 2 logging specific IO
types.
FileRoller
: Does automatic log file rotation.Syslog
: Write to syslog using thelogger
command. Please note that syslog output is only available on systems that havelogger
utility installed. (This should include both Linux and OS X, but typically excludes Windows.) Note that BSD'slogger
(used on OS X) will append a second process ID, which is the PID of thelogger
tool itself.
To create your own IO
types you need to subtype IO
and implement the println
and flush
methods.