protocol
loggingp
ï
Logging events to files protocol.
Availability:
logtalk_load(logging(loader))
Author: Paulo Moura
Version: 1:0:0
Date: 2011-01-06
Compilation flags:
static
Dependencies:
(none)
Remarks:
(none)
Inherited public predicates:
(none)
Public predicatesï
log_file/2
ï
Access to the table of log files.
Compilation flags:
static
Template:
log_file(Alias,File)
Mode and number of proofs:
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.
Compilation flags:
static
Template:
define_log_file(Alias,File)
Mode and number of proofs:
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.
Compilation flags:
static
Template:
init_log_file(Alias,File)
Mode and number of proofs:
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.
Compilation flags:
static
Template:
log_event(Alias,Event)
Mode and number of proofs:
log_event(+atom,+nonvar)
- zero_or_one
logging/1
ï
True if logging to file with alias Alias is enabled.
Compilation flags:
static
Template:
logging(Alias)
Mode and number of proofs:
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.
Compilation flags:
static
Template:
enable_logging(Alias)
Mode and number of proofs:
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.
Compilation flags:
static
Template:
disable_logging(Alias)
Mode and number of proofs:
disable_logging(+atom)
- zero_or_one
Protected predicatesï
(none)
Private predicatesï
(none)
Operatorsï
(none)
See also