LogContextHashFlags#

Added in version 1.28.

class LogContextHashFlags#

Flags to control how the message hash is calculated in a LogContext. The message hash is used to determine if a message is a duplicate of a previously logged message.

Fields#

class LogContextHashFlags
DEFAULT#

Default behavior for logging context (uses object, format, file but not line number or string args)

IGNORE_FILE#

Ignore file name when calculating message hash

IGNORE_FORMAT#

Ignore the “format” part of the debug log message

IGNORE_OBJECT#

Ignore object pointer or object ID when calculating message hash

USE_LINE_NUMBER#

Use line number when calculating message hash (not used by default)

USE_STRING_ARGS#

Use the arguments part of the string message (not used by default)