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 @@
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 @@color_configs
exception_config
stack_config
+def formatException(exc_info)
+
Format and return the specified exception information as a string.
+This default implementation just uses +traceback.print_exception()
+def formatStack(stack_info)
+
This method is provided as an extension point for specialized +formatting of stack information.
+The input data is a string as returned from a call to
+:func:traceback.print_stack
, but with the last trailing newline
+removed.
The base implementation just returns the value passed in.
Formatter