Skip to main content
Version: 1.7

ActorLogFormatter

Log formatter that prints out the log message nicely formatted, with colored level and stringified extra fields.

It formats the log records so that they:

  • start with the level (colorized, and padded to 5 chars so that it is nicely aligned)
  • then have the actual log message, if it's multiline then it's nicely indented
  • then have the stringified extra log fields
  • then, if an exception is a part of the log record, prints the formatted exception.

Index

Methods

Properties

Methods

__init__

  • __init__(include_logger_name, args, kwargs): None
  • Create an instance of the ActorLogFormatter.


    Parameters

    • optionalinclude_logger_name: bool = False

      Include logger name at the beginning of the log line. Defaults to False.

    • args: Any

      Arguments passed to the parent class.

    • kwargs: Any

      Keyword arguments passed to the parent class.

    Returns None

Properties

empty_record

empty_record: Undefined
Page Options