disk_log
to simplify logging.
This module adds datestamping and terminal output to the
usual disk_log
. It also provides a simpler,
less flexible interface (e.g. only asynchronous logging is
allowed.)
Exported Functions | |
---|---|
open/1 | Opens a logfile. |
write/1 | Logs a message. |
write/2 | Logs a formatted message. |
open(filename()) -> ok | {error, Reason}
Opens a logfile. This step is optional; if no logfile is opened, messages will only be logged to the terminal.
write(string()) -> ok
Logs a message.
write(string(), [term()]) -> ok
Logs a formatted message.