Belle II Software  release-08-01-10
LogViewer Class Reference
Inheritance diagram for LogViewer:
Collaboration diagram for LogViewer:

Public Member Functions

def __init__ (self, log_content)
 
def format_logmessage (self, buf, message, indent=4, base=0)
 
def create (self)
 
def show (self)
 

Public Attributes

 log_content
 The log content to show.
 
 log_levels
 The log levels of the framework.
 
 log_color_codes
 The color codes for the log messages.
 
 log_message
 A templated line in the log.
 
 toggle_button_line
 The toggle button.
 

Detailed Description

A widget to show the log of a calculation.

Definition at line 296 of file viewer.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  log_content 
)
Initialize the log viewer.

Definition at line 301 of file viewer.py.

Member Function Documentation

◆ create()

def create (   self)
Create the log viewer.

Reimplemented from IPythonWidget.

Definition at line 346 of file viewer.py.

◆ format_logmessage()

def format_logmessage (   self,
  buf,
  message,
  indent = 4,
  base = 0 
)
Format the json object of a logmessage as key: value list with recursion and indentation
Funnily this is faster than json.dumps() and looks a bit better in the title attribute

Definition at line 331 of file viewer.py.

◆ show()

def show (   self)
inherited
Show the widget

Reimplemented in ProgressBarViewer.

Definition at line 31 of file viewer.py.


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