protocol
Logging events to files protocol.
Paulo Moura
1.0
2011/1/6
static
(no dependencies on other files)
Access to the table of log files.
static
log_file(Alias,File)
log_file(?atom,?atom) – zero_or_more
Defines a log file with alias Alias and file name File. If the log file already exists, its contents are kept. Logging is enabled by default.
static
define_log_file(Alias,File)
define_log_file(+atom,+atom) – one
Initializes a new log file with alias Alias and file name File. If the log file already exists, its contents are erased. Logging is enabled by default.
static
init_log_file(Alias,File)
init_log_file(+atom,+atom) – one
Logs an event Event to a log file with alias Alias. Fails if a log file with alias Alias is not defined.
static
log_event(Alias,Event)
log_event(+atom,+nonvar) – zero_or_one
True if logging to file with alias Alias is enabled.
static
logging(Alias)
logging(+atom) – zero_or_one
Enables logging to file with alias Alias. Fails if a log file with alias Alias is not defined.
static
enable_logging(Alias)
enable_logging(+atom) – zero_or_one
Disables logging to file with alias Alias. Fails if a log file with alias Alias is not defined.
static
disable_logging(Alias)
disable_logging(+atom) – zero_or_one
(none)
(none)