Module erlogger

Function Index

log/2Log a message to the logger.
log/3Log a message to the logger with formatting as io:format Logger must be a logger name or an anonymous logger token.
log_surely/2Log a message to the logger, and be sure it's written before returning.
log_surely/3Log a message to the logger, with formatting as io:format and be sure it's written before returning.
monitor_logger/1Attach a monitor to the logger process.
start/2Function for the application manager.
start_anonymous/1Start an anonymous logger.
start_logger/2Start a named logger.
stop/1Function for the application manager.
stop_logger/1Shutdown a logger.

Function Details

log/2

log(Logger, Message) -> any()

Log a message to the logger. Logger must be a logger name or an anonymous logger token.

log/3

log(Logger, Message, Args) -> any()

Log a message to the logger with formatting as io:format Logger must be a logger name or an anonymous logger token.

log_surely/2

log_surely(Logger, Message) -> any()

Log a message to the logger, and be sure it's written before returning. The regular log(...) function casts a log message to the log server, leaving the posibility of dropped log messages if the logger dies. This ensures the log is written (or hangs until timeout). Check the return value for timeout errors. Logger must be a logger name or an anonymous logger token.

log_surely/3

log_surely(Logger, Message, Args) -> any()

Log a message to the logger, with formatting as io:format and be sure it's written before returning. The regular log(...) function casts a log message to the log server, leaving the posibility of dropped log messages if the logger dies. This ensures the log is written (or hangs until timeout). Check the return value for timeout errors. Logger must be a logger name or an anonymous logger token.

monitor_logger/1

monitor_logger(Logger) -> any()

Attach a monitor to the logger process. You will be notified if the logger dies. Logger must be a logger name or an anonymous logger token.

start/2

start(X1, Args) -> any()

Function for the application manager. Starts the erlogger application.

start_anonymous/1

start_anonymous(File) -> any()

Start an anonymous logger. Returns a token that can be passed as: erlogger:log(Token, ...) to write to the logger. The logger can be shut down with stop_logger(Token).

start_logger/2

start_logger(Name, File) -> any()

Start a named logger. Name should be an atom. This logger can be logged to by name using erlogger:log(Name, ...) The logger can be shut down with stop_logger(Name). Returns ok on success, no_supervisor on error (supervisor is dead)

stop/1

stop(X1) -> any()

Function for the application manager. Stops the erlogger application.

stop_logger/1

stop_logger(Logger) -> any()

Shutdown a logger. Logger must be a logger name or an anonymous logger token.


Generated by EDoc, Mar 9 2016, 01:36:31.