Enum LogLevel

java.lang.Object
java.lang.Enum<LogLevel>
com.github.kokorin.jaffree.LogLevel
All Implemented Interfaces:
Serializable, Comparable<LogLevel>, java.lang.constant.Constable

public enum LogLevel extends Enum<LogLevel>
FFmpeg & FFprobe log level.
  • Enum Constant Details

    • QUIET

      public static final LogLevel QUIET
      Show nothing at all; be silent.
    • PANIC

      public static final LogLevel PANIC
      Only show fatal errors which could lead the process to crash, such as an assertion failure.

      This is not currently used for anything.

    • FATAL

      public static final LogLevel FATAL
      Only show fatal errors.

      These are errors after which the process absolutely cannot continue.

    • ERROR

      public static final LogLevel ERROR
      Show all errors, including ones which can be recovered from.
    • WARNING

      public static final LogLevel WARNING
      Show all warnings and errors.

      Any message related to possibly incorrect or unexpected events will be shown.

    • INFO

      public static final LogLevel INFO
      Show informative messages during processing.

      This is in addition to warnings and errors. This is the default value.

    • VERBOSE

      public static final LogLevel VERBOSE
      Same as info, except more verbose.
    • DEBUG

      public static final LogLevel DEBUG
      Show everything, including debugging information.
    • TRACE

      public static final LogLevel TRACE
      Show everything, including trace information.
  • Method Details

    • values

      public static 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 LogLevel valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • code

      public int code()
      Returns:
      integer log level code
    • isEqualOrHigher

      public boolean isEqualOrHigher(LogLevel other)
      Checks if passed in log level has the same or higher severity.
      Parameters:
      other - log level to compare with
      Returns:
      true if log level has the same or higher severity.
    • isInfoOrHigher

      public boolean isInfoOrHigher()
      Checks if this log level is INFO or higher.
      Returns:
      true if INFO or higher.
    • isErrorOrHigher

      public boolean isErrorOrHigher()
      Checks if this log level is ERROR or higher.
      Returns:
      true if ERROR or higher.
    • fromCode

      public static LogLevel fromCode(int code)
      Returns LogLevel with specified code.
      Parameters:
      code - category code
      Returns:
      LogLevel or null