The LogMessageHandler typedef represents a type of function that handles log messages in an unspecified way (e.g., by writing the log message to an output stream or to a file). Because they can be called concurrently from multiple threads, log message handlers must be thread‐safe. While installed, handlers must exhibit only defined behavior if the specified file is a null‐terminated string, the specified line is not negative, and the specified message is a null‐terminated string.

Synopsis

Declared in <bsls_log.h>

typedef void(* LogMessageHandler)(bsls::LogSeverity::Enum, char const*, int, char const*);

Created with MrDocs