LogLevel

Log level for filtering log output.

Log levels are ordered by priority, where lower priority values represent more verbose logging. Setting a minimum log level filters out all messages below that level.

Level Hierarchy (lowest to highest priority)

  1. VERBOSE - Most detailed logging

  2. DEBUG - Debug information

  3. INFO - General information

  4. WARN - Warning messages

  5. ERROR - Error messages only

  6. NONE - Disable all logging

Usage Example

// Only show warnings and errors
BleLog.setLevel(LogLevel.WARN)

// Show all logs including verbose
BleLog.setLevel(LogLevel.VERBOSE)

// Disable all logging
BleLog.setLevel(LogLevel.NONE)

Entries

Link copied to clipboard

Verbose log level (priority 0).

Link copied to clipboard

Debug log level (priority 1).

Link copied to clipboard

Info log level (priority 2).

Link copied to clipboard

Warning log level (priority 3).

Link copied to clipboard

Error log level (priority 4).

Link copied to clipboard

None log level (priority 5).

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The numeric priority of this log level. Lower values indicate more verbose logging.

Functions

Link copied to clipboard
fun valueOf(value: String): LogLevel

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.