Enum ConfigurationType

Description

Represents enumeration of ConfigurationType used to configure or access certain aspect of logging.

Values

Enabled = 1

Determines whether or not corresponding level and logger of logging is enabled You may disable all logs by using el::Level::Global.

Mentioned in:

Getting Started / Using Configuration File

ToFile = 2

Whether or not to write corresponding log to log file.

ToStandardOutput = 4

Whether or not to write corresponding level and logger log to standard output. By standard output meaning termnal, command prompt etc.

Mentioned in:

Async / prog.cpp

Format = 8

Determines format of logging corresponding level and logger.

Mentioned in:

Getting Started / Using Configuration File

Getting Started / Using el::Configurations Class

Getting Started / Logging Format Specifiers

Getting Started / Date/Time Format Specifiers

Getting Started / Custom Format Specifiers

Fast Dictionary / Qt / main.cc

STL / custom-format-spec.cpp

STL / default-configurations.cpp

STL / pthread.cpp

STL / thread-names.cpp

Hello Gtkmm / Gtkmm / main.cc

Filename = 16

Determines log file (full path) to write logs to for corresponding level and logger.

Mentioned in:

Getting Started / Using Configuration File

File Splitter Joiner / Qt / addsplittedfiledialog.cpp

File Splitter Joiner / Qt / joinerwidget.cpp

File Splitter Joiner / Qt / splitterwidget.cpp

STL / default-configurations.cpp

STL / roll-out.cpp

SubsecondPrecision = 32

Specifies precision of the subsecond part. It should be within range (1-6).

Mentioned in:

Getting Started / Date/Time Format Specifiers

MillisecondsWidth = SubsecondPrecision

Alias of SubsecondPrecision (for backward compatibility)

PerformanceTracking = 64

Determines whether or not performance tracking is enabled.

@detail This does not depend on logger or level. Performance tracking always uses 'performance' logger

MaxLogFileSize = 128

Specifies log file max size.

@detail If file size of corresponding log file (for corresponding level) is >= specified size, log file will be truncated and re-initiated.

Mentioned in:

STL / roll-out.cpp

LogFlushThreshold = 256

Specifies number of log entries to hold until we flush pending log data.

Unknown = 1010

Represents unknown configuration.

Source

Lines 637-667 in src/easylogging++.h.

enum class ConfigurationType : base::type::EnumType {
  /// @brief Determines whether or not corresponding level and logger of logging is enabled
  /// You may disable all logs by using el::Level::Global
  Enabled = 1,
  /// @brief Whether or not to write corresponding log to log file
  ToFile = 2,
  /// @brief Whether or not to write corresponding level and logger log to standard output.
  /// By standard output meaning termnal, command prompt etc
  ToStandardOutput = 4,
  /// @brief Determines format of logging corresponding level and logger.
  Format = 8,
  /// @brief Determines log file (full path) to write logs to for corresponding level and logger
  Filename = 16,
  /// @brief Specifies precision of the subsecond part. It should be within range (1-6).
  SubsecondPrecision = 32,
  /// @brief Alias of SubsecondPrecision (for backward compatibility)
  MillisecondsWidth = SubsecondPrecision,
  /// @brief Determines whether or not performance tracking is enabled.
  ///
  /// @detail This does not depend on logger or level. Performance tracking always uses 'performance' logger
  PerformanceTracking = 64,
  /// @brief Specifies log file max size.
  ///
  /// @detail If file size of corresponding log file (for corresponding level) is >= specified size, log file will
  /// be truncated and re-initiated.
  MaxLogFileSize = 128,
  /// @brief Specifies number of log entries to hold until we flush pending log data
  LogFlushThreshold = 256,
  /// @brief Represents unknown configuration
  Unknown = 1010
};





Add Discussion

Log in to comment