Enum Class LogLevelFlags

java.lang.Object
java.lang.Enum<LogLevelFlags>
org.gnome.glib.LogLevelFlags
All Implemented Interfaces:
Serializable, Comparable<LogLevelFlags>, Constable, Enumeration

@Generated("org.javagi.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(String, Set, LogFunc) and GLib.logSetFatalMask(String, Set).

  • Enum Constant Details

    • FLAG_RECURSION

      public static final LogLevelFlags FLAG_RECURSION
      internal flag
    • FLAG_FATAL

      public static final LogLevelFlags FLAG_FATAL
      internal flag
    • LEVEL_ERROR

      public static final LogLevelFlags LEVEL_ERROR
      log level for errors, see GLib.error. This level is also used for messages produced by GLib.assert_.
    • LEVEL_CRITICAL

      public static final LogLevelFlags LEVEL_CRITICAL
      log level for critical warning messages, see GLib.critical. This level is also used for messages produced by GLib.returnIfFail and GLib.returnValIfFail.
    • LEVEL_WARNING

      public static final LogLevelFlags LEVEL_WARNING
      log level for warnings, see GLib.warning
    • LEVEL_MESSAGE

      public static final LogLevelFlags LEVEL_MESSAGE
      log level for messages, see GLib.message
    • LEVEL_INFO

      public static final LogLevelFlags LEVEL_INFO
      log level for informational messages, see GLib.info
    • LEVEL_DEBUG

      public static final LogLevelFlags LEVEL_DEBUG
      log level for debug messages, see GLib.debug
    • LEVEL_MASK

      public static final LogLevelFlags LEVEL_MASK
      a mask including all log levels
  • Method Details

    • values

      public static LogLevelFlags[] 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

      public static LogLevelFlags valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static Set<LogLevelFlags> of(int flags)
      Create a new EnumSet<LogLevelFlags> for the provided bitfield
      Parameters:
      flags - the LogLevelFlags bitfield
      Returns:
      the EnumSet for the provided bitfield
    • of

      public static Set<LogLevelFlags> of(MemorySegment address)
      Create a new EnumSet<LogLevelFlags> for the bitfield in the provided memory address.
      Parameters:
      address - the memory address holding a bitfield value
      Returns:
      the EnumSet for the bitfield in the provided memory address