protocol
loggingp
¶
Logging events to files protocol.
static
(no dependencies on other entities)
Public interface¶
log_file/2
¶
Access to the table of log files.
static
log_file(Alias,File)
log_file(?atom,?atom)
- zero_or_more
define_log_file/2
¶
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
init_log_file/2
¶
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
log_event/2
¶
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
logging/1
¶
True if logging to file with alias Alias is enabled.
static
logging(Alias)
logging(+atom)
- zero_or_one
enable_logging/1
¶
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
disable_logging/1
¶
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
Protected interface¶
(none)
Private predicates¶
(none)
Operators¶
(none)