Module ce_log

Description

Wrapper around 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.)

Function Index

Exported Functions
open/1Opens a logfile.
write/1Logs a message.
write/2Logs a formatted message.

Exported Functions

open/1

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/1

write(string()) -> ok

Logs a message.

write/2

write(string(), [term()]) -> ok

Logs a formatted message.