OpenQuizz
Une application de gestion des contenus pédagogiques
IndentingFormatter Class Reference
Inheritance diagram for IndentingFormatter:
Collaboration diagram for IndentingFormatter:

Public Member Functions

def __init__ (self, *args, add_timestamp=False, **kwargs)
 
def get_message_start (self, formatted, levelno)
 
def format (self, record)
 

Data Fields

 add_timestamp
 

Static Public Attributes

 default_time_format
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
args,
  add_timestamp = False,
**  kwargs 
)
A logging.Formatter that obeys the indent_log() context manager.

:param add_timestamp: A bool indicating output lines should be prefixed
    with their record's timestamp.

Member Function Documentation

◆ format()

def format (   self,
  record 
)
Calls the standard formatter, but will indent all of the log message
lines by our current indentation level.

◆ get_message_start()

def get_message_start (   self,
  formatted,
  levelno 
)
Return the start of the formatted log message (not counting the
prefix to add to each line).

Field Documentation

◆ add_timestamp

add_timestamp

◆ default_time_format

default_time_format
static

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