diff --git a/docs/rainbowlog/formatter.html b/docs/rainbowlog/formatter.html index 9d403a2..3db35f6 100644 --- a/docs/rainbowlog/formatter.html +++ b/docs/rainbowlog/formatter.html @@ -34,7 +34,7 @@

Classes

class Formatter -(inner_formatter: logging.Formatter, color_configs: Mapping[int, Mapping[str, Any]] = {10: {'fg': 'grey', 'style': 'bold+italic'}, 20: {'fg': 'green', 'style': 'bold+italic'}, 30: {'fg': 'yellow', 'style': 'bold+italic'}, 40: {'fg': 'red', 'style': 'bold+italic'}, 50: {'fg': 'red', 'style': 'bold+italic+underline'}}) +(inner_formatter: logging.Formatter, color_configs: Mapping[int, Mapping[str, Any]] = {10: {'fg': 'grey', 'style': 'bold+italic'}, 20: {'fg': 'green', 'style': 'bold+italic'}, 30: {'fg': 'yellow', 'style': 'bold+italic'}, 40: {'fg': 'red', 'style': 'bold+italic'}, 50: {'fg': 'red', 'style': 'bold+italic+underline'}}, exception_config: Mapping[str, Any] = {'fg': 'red', 'style': 'bold+italic+underline'}, stack_config: Mapping[str, Any] = {'fg': 'red', 'style': 'bold+italic'})

This log formatter wraps a given formatter and adds color to the output.

@@ -51,6 +51,10 @@

Args

The formatter to use for the log messages.
color_configs
A mapping from log levels to keyword arguments for the ansicolors library's color function.
+
exception_config
+
The keyword arguments to pass to color for formatting exceptions.
+
stack_config
+
The keyword arguments to pass to color for formatting stack traces.

Ancestors