Package com.github.kokorin.jaffree
Enum LogLevel
- All Implemented Interfaces:
Serializable,Comparable<LogLevel>,java.lang.constant.Constable
FFmpeg & FFprobe log level.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionShow everything, including debugging information.Show all errors, including ones which can be recovered from.Only show fatal errors.Show informative messages during processing.Only show fatal errors which could lead the process to crash, such as an assertion failure.Show nothing at all; be silent.Show everything, including trace information.Same as info, except more verbose.Show all warnings and errors. -
Method Summary
Modifier and TypeMethodDescriptionintcode()static LogLevelfromCode(int code) Returns LogLevel with specified code.booleanisEqualOrHigher(LogLevel other) Checks if passed in log level has the same or higher severity.booleanChecks if this log level isERRORor higher.booleanChecks if this log level isINFOor higher.static LogLevelReturns the enum constant of this type with the specified name.static LogLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
QUIET
Show nothing at all; be silent. -
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
Only show fatal errors.These are errors after which the process absolutely cannot continue.
-
ERROR
Show all errors, including ones which can be recovered from. -
WARNING
Show all warnings and errors.Any message related to possibly incorrect or unexpected events will be shown.
-
INFO
Show informative messages during processing.This is in addition to warnings and errors. This is the default value.
-
VERBOSE
Same as info, except more verbose. -
DEBUG
Show everything, including debugging information. -
TRACE
Show everything, including trace information.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
code
public int code()- Returns:
- integer log level code
-
isEqualOrHigher
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 isINFOor higher.- Returns:
- true if
INFOor higher.
-
isErrorOrHigher
public boolean isErrorOrHigher()Checks if this log level isERRORor higher.- Returns:
- true if
ERRORor higher.
-
fromCode
Returns LogLevel with specified code.- Parameters:
code- category code- Returns:
- LogLevel or null
-