Enum Class LogLevel

java.lang.Object
java.lang.Enum<LogLevel>
com.here.sdk.core.engine.LogLevel
All Implemented Interfaces:
Serializable, Comparable<LogLevel>, Constable

public enum LogLevel extends Enum<LogLevel>

Severity levels for log messages. When a level is passed to LogControl, it defines the minimal severity of messages that will be delivered, based on the following hierarchy:

  1. LOG_LEVEL_INFO
  2. LOG_LEVEL_WARNING
  3. LOG_LEVEL_ERROR
  4. LOG_LEVEL_FATAL

For example, LOG_LEVEL_ERROR includes both error and fatal messages. It is not possible to receive only informational messages while excluding more severe messages by using the LogControl threshold alone. Use LogAppender to apply additional runtime filtering after that threshold if needed. Use LOG_LEVEL_OFF to disable logging entirely.

  • Enum Constant Details

    • LOG_LEVEL_INFO

      public static final LogLevel LOG_LEVEL_INFO

      The severity value for informational messages.

    • LOG_LEVEL_WARNING

      public static final LogLevel LOG_LEVEL_WARNING

      The severity value for warning messages.

    • LOG_LEVEL_ERROR

      public static final LogLevel LOG_LEVEL_ERROR

      The severity value for error messages.

    • LOG_LEVEL_FATAL

      public static final LogLevel LOG_LEVEL_FATAL

      The severity value for fatal messages.

    • LOG_LEVEL_OFF

      public static final LogLevel LOG_LEVEL_OFF

      A special value to turn off logging.

  • Method Details

    • values

      public static LogLevel[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LogLevel valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null