userver: testsuite.logcapture.LogLevel Class Reference
Loading...
Searching...
No Matches
testsuite.logcapture.LogLevel Class Reference

Detailed Description

Represents log level as IntEnum, which supports comparison.

Available levels are: TRACE, DEBUG, INFO, WARNING, ERROR, CRITICAL, NONE

Definition at line 35 of file logcapture.py.

Inheritance diagram for testsuite.logcapture.LogLevel:

Public Member Functions

'LogLevelfrom_string (cls, str level)
 Parse log level from the string.

Static Public Attributes

int TRACE = 0
int DEBUG = 1
int INFO = 2
int WARNING = 3
int ERROR = 4
int CRITICAL = 5
int NONE = 6

Member Function Documentation

◆ from_string()

'LogLevel' testsuite.logcapture.LogLevel.from_string ( cls,
str level )

Parse log level from the string.

Definition at line 51 of file logcapture.py.

Member Data Documentation

◆ CRITICAL

int testsuite.logcapture.LogLevel.CRITICAL = 5
static

Definition at line 47 of file logcapture.py.

◆ DEBUG

int testsuite.logcapture.LogLevel.DEBUG = 1
static

Definition at line 43 of file logcapture.py.

◆ ERROR

int testsuite.logcapture.LogLevel.ERROR = 4
static

Definition at line 46 of file logcapture.py.

◆ INFO

int testsuite.logcapture.LogLevel.INFO = 2
static

Definition at line 44 of file logcapture.py.

◆ NONE

int testsuite.logcapture.LogLevel.NONE = 6
static

Definition at line 48 of file logcapture.py.

◆ TRACE

int testsuite.logcapture.LogLevel.TRACE = 0
static

Definition at line 42 of file logcapture.py.

◆ WARNING

int testsuite.logcapture.LogLevel.WARNING = 3
static

Definition at line 45 of file logcapture.py.


The documentation for this class was generated from the following file: