Module ce_log

Wrapper around disk_log to simplify logging.

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

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

Function Details

open/1

open(LogFile::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::string()) -> ok

Logs a message.

write/2

write(Fmt::string(), Args::[term()]) -> ok

Logs a formatted message.


Generated by EDoc, Dec 25 2007, 02:37:36.