Author(s): The CLIP Group.
Version: 1.10#7 (2006/4/26, 19:22:13 CEST)
Version of last change: 1.9#282 (2004/2/13, 15:20:28 CET)
This is a very simple library for printing status and error messages to the console.
messages
):- use_module(library(messages)).
error_message/1
,
error_message/2
,
error_message/3
,
warning_message/1
,
warning_message/2
,
warning_message/3
,
note_message/1
,
note_message/2
,
note_message/3
,
simple_message/1
,
simple_message/2
,
optional_message/2
,
optional_message/3
,
debug_message/1
,
debug_message/2
,
debug_goal/2
,
debug_goal/3
.
issue_debug_messages/1
.
messages
)
Meta-predicate with arguments: error_message(addmodule)
.
Usage: error_message(Text)
Text
is printed as an ERROR message.
Text
is a string (a list of character codes).
(basic_props:string/1
)
Meta-predicate with arguments: error_message(?,addmodule)
.
Usage: error_message(Text, ArgList)
Text
is printed as an ERROR message, using the arguments in ArgList
to interpret any variable-related formatting commands embedded in Text
.
Text
is an atom or string describing how the arguments should be formatted. If it is an atom it will be converted into a string with name/2
.
(format:format_control/1
)
ArgList
is a list.
(basic_props:list/1
)
Meta-predicate with arguments: error_message(?,?,addmodule)
.
Usage: error_message(Lc, Text, ArgList)
Text
is printed as an ERROR message, using the arguments in ArgList
to interpret any variable-related formatting commands embedded in Text
, and reporting error location Lc
(file and line numbers).
messages:location/1
)
Text
is an atom or string describing how the arguments should be formatted. If it is an atom it will be converted into a string with name/2
.
(format:format_control/1
)
ArgList
is a list.
(basic_props:list/1
)
Meta-predicate with arguments: warning_message(addmodule)
.
Usage: warning_message(Text)
Text
is printed as a WARNING message.
Text
is a string (a list of character codes).
(basic_props:string/1
)
Meta-predicate with arguments: warning_message(?,addmodule)
.
Usage: warning_message(Text, ArgList)
Text
is printed as a WARNING message, using the arguments in ArgList
to interpret any variable-related formatting commands embedded in Text
.
Text
is an atom or string describing how the arguments should be formatted. If it is an atom it will be converted into a string with name/2
.
(format:format_control/1
)
ArgList
is a list.
(basic_props:list/1
)
Meta-predicate with arguments: warning_message(?,?,addmodule)
.
Usage: warning_message(Lc, Text, ArgList)
Text
is printed as a WARNING message, using the arguments in ArgList
to interpret any variable-related formatting commands embedded in Text
, and reporting error location Lc
(file and line numbers).
messages:location/1
)
Text
is an atom or string describing how the arguments should be formatted. If it is an atom it will be converted into a string with name/2
.
(format:format_control/1
)
ArgList
is a list.
(basic_props:list/1
)
Meta-predicate with arguments: note_message(addmodule)
.
Usage: note_message(Text)
Text
is printed as a NOTE.
Text
is a string (a list of character codes).
(basic_props:string/1
)
Meta-predicate with arguments: note_message(?,addmodule)
.
Usage: note_message(Text, ArgList)
Text
is printed as a NOTE, using the arguments in ArgList
to interpret any variable-related formatting commands embedded in Text
.
Text
is an atom or string describing how the arguments should be formatted. If it is an atom it will be converted into a string with name/2
.
(format:format_control/1
)
ArgList
is a list.
(basic_props:list/1
)
Meta-predicate with arguments: note_message(?,?,addmodule)
.
Usage: note_message(Lc, Text, ArgList)
Text
is printed as a NOTE, using the arguments in ArgList
to interpret any variable-related formatting commands embedded in Text
, and reporting error location Lc
(file and line numbers).
messages:location/1
)
Text
is an atom or string describing how the arguments should be formatted. If it is an atom it will be converted into a string with name/2
.
(format:format_control/1
)
ArgList
is a list.
(basic_props:list/1
)
Usage: simple_message(Text)
Text
is printed.
Text
is a string (a list of character codes).
(basic_props:string/1
)
Usage: simple_message(Text, ArgList)
Text
is printed as a message, using the arguments in ArgList
.
Text
is an atom or string describing how the arguments should be formatted. If it is an atom it will be converted into a string with name/2
.
(format:format_control/1
)
ArgList
is a list.
(basic_props:list/1
)
Usage: optional_message(Text, Opts)
Text
is printed as a message, but only if the atom -v
is a member of Opts
. These predicates are meant to be used for optional messages, which are only to be printed when verbose output is requested explicitly.
Text
is a string (a list of character codes).
(basic_props:string/1
)
Opts
is a list of atm
s.
(basic_props:list/2
)
Usage: optional_message(Text, ArgList, Opts)
Text
is printed as a message, using the arguments in ArgList
, but only if the atom -v
is a member of Opts
. These predicates are meant to be used for optional messages, which are only to be printed when verbose output is requested explicitly.
Text
is an atom or string describing how the arguments should be formatted. If it is an atom it will be converted into a string with name/2
.
(format:format_control/1
)
ArgList
is a list.
(basic_props:list/1
)
Opts
is a list of atm
s.
(basic_props:list/2
)
Meta-predicate with arguments: debug_message(addmodule)
.
Usage: debug_message(Text)
Text
is printed as a debugging message. These messages are turned on
by defining a fact of
issue_debug_messages/1
with the module name as argument.
Text
is an atom or string describing how the arguments should be formatted. If it is an atom it will be converted into a string with name/2
.
(format:format_control/1
)
Meta-predicate with arguments: debug_message(?,addmodule)
.
Usage: debug_message(Text, ArgList)
Text
is printed as a debugging message, using the arguments in ArgList
to interpret any variable-related formatting commands embedded in Text
. These messages are turned on
by defining a fact of
issue_debug_messages/1
which the module name as argument.
Text
is an atom or string describing how the arguments should be formatted. If it is an atom it will be converted into a string with name/2
.
(format:format_control/1
)
ArgList
is a list.
(basic_props:list/1
)
Meta-predicate with arguments: debug_goal(goal,addmodule)
.
Usage: debug_goal(Goal, Text)
Meta-predicate with arguments: debug_goal(goal,?,addmodule)
.
Usage: debug_goal(Goal, Text, ArgList)
Goal
is called. The text provided in Text
is then printed as a debugging message, using the arguments in ArgList
to interpret any variable-related formatting commands embedded in Text
. Note that the variables in ArgList
can be computed by Goal
. The whole process (including running Goal
) is turned on
by defining a fact of
issue_debug_messages/1
with the module name as argument.
messages
)The predicate is multifile.
The predicate is of type data.
Usage: issue_debug_messages(Module)
Module
.
Module
is currently instantiated to an atom.
(term_typing:atom/1
)
messages
)Usage:
messages
)Go to the first, previous, next, last section, table of contents.