IO

IO

Memento writes all logs to any subtype of IO including IOBuffers, LibuvStreams, Pipes, Files, etc. Memento also comes with a logging-specific IO type, FileRoller, which does automatic log file rotation.

The Syslogs package provides the Syslog IO type to write to syslog using the logger command. Please note that syslog output is only available on systems that have logger utility installed (this should include both Linux and macOS, but typically excludes Windows). Note that BSD's logger (used on macOS) will append a second process ID, which is the PID of the logger tool itself.

To create your own IO types for use with Memento you need to subtype IO and implement the println and flush methods.