Class swarmauri_standard.logger_formatters.HTMLFormatter.HTMLLoggingFormatter
swarmauri_standard.logger_formatters.HTMLFormatter.HTMLLoggingFormatter
HTMLLoggingFormatter(config)
Bases: Formatter
Custom logging.Formatter implementation that outputs HTML-formatted logs.
This class handles the actual formatting of log records into HTML.
Initialize the HTML formatter with the given configuration.
PARAMETER | DESCRIPTION |
---|---|
config
|
The HTMLFormatter configuration to use
TYPE:
|
Source code in swarmauri_standard/logger_formatters/HTMLFormatter.py
87 88 89 90 91 92 93 94 95 |
|
config
instance-attribute
config = config
format
format(record)
Format the specified log record as HTML.
PARAMETER | DESCRIPTION |
---|---|
record
|
The log record to format
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
str
|
HTML-formatted log message |
Source code in swarmauri_standard/logger_formatters/HTMLFormatter.py
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
|