Package org.gnome.glib
Enum Class LogLevelFlags
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<LogLevelFlags>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum LogLevelFlags
extends Enum<LogLevelFlags>
implements Enumeration
Flags specifying the level of log messages.
It is possible to change how GLib treats messages of the various
levels using GLib.logSetHandler(java.lang.String, java.util.Set<org.gnome.glib.LogLevelFlags>, org.gnome.glib.LogFunc)
and GLib.logSetFatalMask(java.lang.String, java.util.Set<org.gnome.glib.LogLevelFlags>)
.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptioninternal flaginternal flaglog level for critical warning messages, seeGLib#critical
.log level for debug messages, seeGLib#debug
log level for errors, seeGLib#error
.log level for informational messages, seeGLib#info
a mask including all log levelslog level for messages, seeGLib#message
log level for warnings, seeGLib#warning
-
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Get the numeric value of this enumstatic LogLevelFlags
of
(int value) Create a new LogLevelFlags for the provided valuestatic LogLevelFlags
Returns the enum constant of this class with the specified name.static LogLevelFlags[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FLAG_RECURSION
internal flag -
FLAG_FATAL
internal flag -
LEVEL_ERROR
log level for errors, seeGLib#error
. This level is also used for messages produced byGLib#assert_
. -
LEVEL_CRITICAL
log level for critical warning messages, seeGLib#critical
. This level is also used for messages produced byGLib#returnIfFail
andGLib#returnValIfFail
. -
LEVEL_WARNING
log level for warnings, seeGLib#warning
-
LEVEL_MESSAGE
log level for messages, seeGLib#message
-
LEVEL_INFO
log level for informational messages, seeGLib#info
-
LEVEL_DEBUG
log level for debug messages, seeGLib#debug
-
LEVEL_MASK
a mask including all log levels
-
-
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
-
of
Create a new LogLevelFlags for the provided value- Parameters:
value
- the bitfield value- Returns:
- the bitfield for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-