user:message_hook/4

user:message_hook(+ Term, + Kind, + Lines)*

Hook predicate that may be define in the module user to intercept messages from print_message//22. Term and Kind are the same as passed to print_message//22. Lines is a list of format statements as described with print_message_lines//33.

This predicate should be defined dynamic and multifile to allow other modules defining clauses for it too.