This is a very simple library for printing status and error messages to the console.
Usage:show_message(Type,Text)
The text provided in Text is printed as a message of type Type.
Usage:show_message(Type,Text,ArgList)
The text provided in Text is printed as a message of type Type, using the arguments in ArgList to interpret any variable-related formatting commands embedded in Text.
Usage:show_message(Type,Lc,Text,ArgList)
The text provided in Text is printed as a message of type Type, using the arguments in ArgList to interpret any variable-related formatting commands embedded in Text, and reporting error location Lc (file and line numbers).
location_t(loc(File,L1,L2)) :- atm(File), int(L1), int(L2).
message_t(error). message_t(warning). message_t(note). message_t(simple). message_t(debug).
Usage:
The types of messages supported by the message predicate.
Usage:error_message(Text)
Same as message(error,Text).
Usage:error_message(Text,ArgList)
Same as message(error,Text,ArgList).
Usage:error_message(Lc,Text,ArgList)
Same as message(error,Lc,Text,ArgList).
location_t(loc(File,L1,L2)) :- atm(File), int(L1), int(L2).
Usage:warning_message(Text)
Same as message(warning,Text).
Usage:warning_message(Text,ArgList)
Same as message(warning,Text,ArgList).
Usage:warning_message(Lc,Text,ArgList)
Same as message(warning,Lc,Text,ArgList).
location_t(loc(File,L1,L2)) :- atm(File), int(L1), int(L2).
Usage:note_message(Text)
Same as message(note,Text).
Usage:note_message(Text,ArgList)
Same as message(note,Text,ArgList).
Usage:note_message(Lc,Text,ArgList)
Same as message(note,Lc,Text,ArgList).
location_t(loc(File,L1,L2)) :- atm(File), int(L1), int(L2).
Usage:simple_message(Text)
The text provided in Text is printed.
Usage:simple_message(Text,ArgList)
The text provided in Text is printed as a message, using the arguments in ArgList.
Usage:optional_message(Text,Opts)
The text provided in 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.
Usage:optional_message(Text,ArgList,Opts)
The text provided in 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.
Usage:debug_message(Text)
The text provided in 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.
Usage:debug_message(Text,ArgList)
The text provided in 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.
Usage:issue_debug_messages(Module)
Printing of debugging messages is enabled for module Module.