Logtalk reference manual
Built-in method: print_message_token/4
Contents > Reference Manual > Built-in Methods > print_message_token/4

## 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.

#### Template and modes

    print_message_token(@stream_or_alias, @atom, @nonvar, @list(nonvar))

#### 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).