Enum LoggingFlag

Description

Flags used while writing logs. This flags are set by user.

Values

NewLineForContainer = 1

Makes sure we have new line for each container log entry.

Mentioned in:

Getting Started / Logging Flags

Getting Started / Application Arguments

Basic / Qt / main.cpp

AllowVerboseIfModuleNotSpecified = 2

Makes sure if -vmodule is used and does not specifies a module, then verbose logging is allowed via that module.

Mentioned in:

Getting Started / Logging Flags

Getting Started / Application Arguments

Getting Started / VModule

MinGW / prog.cpp

VCPP2015 Win32 / VCPP2015 Win32 / VC++ / main.cpp

LogDetailedCrashReason = 4

When handling crashes by default, detailed crash reason will be logged as well.

Mentioned in:

Getting Started / Logging Flags

DisableApplicationAbortOnFatalLog = 8

Allows to disable application abortion when logged using FATAL level.

Mentioned in:

Getting Started / Logging Flags

STL / all-logs.cpp

STL / check-macros.cpp

STL / crash.cpp

STL / plog.cpp

ImmediateFlush = 16

Flushes log with every log-entry (performance sensitive) - Disabled by default.

Mentioned in:

Getting Started / Logging Flags

StrictLogFileSizeCheck = 32

Enables strict file rolling.

Mentioned in:

Getting Started / Logging Flags

Getting Started / Log File Rotating

Getting Started / Manually Flushing and Rolling Log Files

STL / roll-out.cpp

ColoredTerminalOutput = 64

Make terminal output colorful for supported terminals.

Mentioned in:

Getting Started / Logging Flags

STL / all-logs.cpp

MultiLoggerSupport = 128

Supports use of multiple logging in same macro, e.g, CLOG(INFO, "default", "network")

Mentioned in:

Getting Started / Logging Flags

STL / different-output.cpp

STL / multiple-loggers.cpp

STL / pthread.cpp

DisablePerformanceTrackingCheckpointComparison = 256

Disables comparing performance tracker's checkpoints.

Mentioned in:

Getting Started / Logging Flags

DisableVModules = 512

Disable VModules.

Mentioned in:

Getting Started / Logging Flags

Getting Started / VModule

DisableVModulesExtensions = 1024

Disable VModules extensions.

Mentioned in:

Getting Started / Logging Flags

Getting Started / VModule

HierarchicalLogging = 2048

Enables hierarchical logging.

Mentioned in:

Getting Started / Level

Getting Started / Logging Flags

STL / all-logs.cpp

CreateLoggerAutomatically = 4096

Creates logger automatically when not available.

Mentioned in:

Getting Started / Logging Flags

STL / multi-loggers-to-same-file.cpp

STL / multi-loggers-with-async.cpp

AutoSpacing = 8192

Adds spaces b/w logs that separated by left-shift operator.

Mentioned in:

Getting Started / Logging Flags

STL / autospace.cpp

STL / very-basic.cpp

FixedTimeFormat = 16384

Preserves time format and does not convert it to sec, hour etc (performance tracking only)

Mentioned in:

Getting Started / Logging Flags

IgnoreSigInt = 32768

Ignore SIGINT or crash.

Mentioned in:

Getting Started / Logging Flags

Mentioned in

Source

Lines 698-732 in src/easylogging++.h.

enum class LoggingFlag : base::type::EnumType {
  /// @brief Makes sure we have new line for each container log entry
  NewLineForContainer = 1,
  /// @brief Makes sure if -vmodule is used and does not specifies a module, then verbose
  /// logging is allowed via that module.
  AllowVerboseIfModuleNotSpecified = 2,
  /// @brief When handling crashes by default, detailed crash reason will be logged as well
  LogDetailedCrashReason = 4,
  /// @brief Allows to disable application abortion when logged using FATAL level
  DisableApplicationAbortOnFatalLog = 8,
  /// @brief Flushes log with every log-entry (performance sensitive) - Disabled by default
  ImmediateFlush = 16,
  /// @brief Enables strict file rolling
  StrictLogFileSizeCheck = 32,
  /// @brief Make terminal output colorful for supported terminals
  ColoredTerminalOutput = 64,
  /// @brief Supports use of multiple logging in same macro, e.g, CLOG(INFO, "default", "network")
  MultiLoggerSupport = 128,
  /// @brief Disables comparing performance tracker's checkpoints
  DisablePerformanceTrackingCheckpointComparison = 256,
  /// @brief Disable VModules
  DisableVModules = 512,
  /// @brief Disable VModules extensions
  DisableVModulesExtensions = 1024,
  /// @brief Enables hierarchical logging
  HierarchicalLogging = 2048,
  /// @brief Creates logger automatically when not available
  CreateLoggerAutomatically = 4096,
  /// @brief Adds spaces b/w logs that separated by left-shift operator
  AutoSpacing = 8192,
  /// @brief Preserves time format and does not convert it to sec, hour etc (performance tracking only)
  FixedTimeFormat = 16384,
  // @brief Ignore SIGINT or crash
  IgnoreSigInt = 32768,
};





Add Discussion

Log in to comment