Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

log.level

import log

Everything here is re-exported by log, so import log is enough and the names are called as log.*. Importing log.level on its own works too and reaches the same definitions.

The LogLevel enum, its module-level constant exports, and the single shared “default level” that every registered transport is filtered against unless it has its own level configured.

Constants

LogLevel

log.LogLevel

The Log levels in order

  • None - Debug - Info - Warning - Error - Critical

None

log.None

Module level declaration of LogLevel.None

Debug

log.Debug

Module level declaration of LogLevel.Debug

Info

log.Info

Module level declaration of LogLevel.Info

Warning

log.Warning

Module level declaration of LogLevel.Warning

Error

log.Error

Module level declaration of LogLevel.Error

Critical

log.Critical

Module level declaration of LogLevel.Critical

Functions

get_level_name()

log.get_level_name(level) -> string

Returns the name of a log level as a string.

Parameters

  • level (log.LogLevel)

Returns string