Enum Log.LogLevel

java.lang.Object
java.lang.Enum<Log.LogLevel>
velox.api.layer1.common.Log.LogLevel
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Log.LogLevel>, java.lang.constant.Constable
Enclosing class:
Log

public static enum Log.LogLevel
extends java.lang.Enum<Log.LogLevel>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    DEBUG
    Debug messages.
    ERROR
    Critical errors.
    INFO
    Informative messages.
    NO_LOG
    Unrealistically high level used to disable logs
    TRACE
    Trace messages.
    TRADING
    Information related to trading activity.
    WARN
    Important warnings.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    int levelAsInt
    Integer representing log level.
  • Method Summary

    Modifier and Type Method Description
    boolean allows​(Log.LogLevel level)  
    static Log.LogLevel fromInt​(int levelAsInt)  
    static Log.LogLevel valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static Log.LogLevel[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • TRACE

      public static final Log.LogLevel TRACE
      Trace messages. A lot of information is logged, so this level is usually only needed when debugging a problem.
    • DEBUG

      public static final Log.LogLevel DEBUG
      Debug messages. This level is useful during development.
    • INFO

      public static final Log.LogLevel INFO
      Informative messages. Typically used for deployment.
    • WARN

      public static final Log.LogLevel WARN
      Important warnings. The application will continue to work correctly.
    • ERROR

      public static final Log.LogLevel ERROR
      Critical errors. The application may no longer work correctly.
    • TRADING

      public static final Log.LogLevel TRADING
      Information related to trading activity. Used for debugging trading issues.
    • NO_LOG

      public static final Log.LogLevel NO_LOG
      Unrealistically high level used to disable logs
  • Field Details

    • levelAsInt

      public final int levelAsInt
      Integer representing log level. Used for comparing log levels (more/less critical)
  • Method Details

    • values

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

      public static Log.LogLevel valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • fromInt

      public static Log.LogLevel fromInt​(int levelAsInt)
    • allows

      public boolean allows​(Log.LogLevel level)