Package ai.onnxruntime
Enum Class OrtLoggingLevel
- All Implemented Interfaces:
Serializable,Comparable<OrtLoggingLevel>,Constable
The logging severity level.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPrint error log messages.Print only fatal log messages.Print info and higher level log messages.Print all log messages.Print warning and higher level log messages. -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()Gets the native value associated with this logging level.static OrtLoggingLevelmapFromInt(int logLevel) Maps from the C API's int enum to the Java enum.static OrtLoggingLevelReturns the enum constant of this class with the specified name.static OrtLoggingLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ORT_LOGGING_LEVEL_VERBOSE
Print all log messages. -
ORT_LOGGING_LEVEL_INFO
Print info and higher level log messages. -
ORT_LOGGING_LEVEL_WARNING
Print warning and higher level log messages. -
ORT_LOGGING_LEVEL_ERROR
Print error log messages. -
ORT_LOGGING_LEVEL_FATAL
Print only fatal log messages.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
public int getValue()Gets the native value associated with this logging level.- Returns:
- The native value.
-
mapFromInt
Maps from the C API's int enum to the Java enum.- Parameters:
logLevel- The index of the Java enum.- Returns:
- The Java enum.
-