built-in method
print_message_token/4
Description
print_message_token(Stream, Prefix, Token, Tokens)
User-defined hook method for printing a message token, declared in the logtalk built-in object as a public, multifile, and dynamic predicate. It allows the user to intercept the printing of a message token. This hook method is automatically called by the print_message_tokens/3 built-in method for each token.
Modes and number of proofs
print_message_token(@stream_or_alias, @atom, @nonvar, @list(nonvar)) - zero_or_one
Errors
(none)
Examples
:- multifile(logtalk::print_message_token/4).
:- dynamic(logtalk::print_message_token/4).
% ignore all flush tokens
logtalk::print_message_token(_Stream, _Prefix, flush, _Tokens).