Skip to main content
Version: 0.2

ActorLogFormatter

{"content": ["Log formatter that prints out the log message nicely formatted, with colored level and stringified extra fields.\n\nIt formats the log records so that they:\n- start with the level (colorized, and padded to 5 chars so that it is nicely aligned)\n- then have the actual log message, if it's multiline then it's nicely indented\n- then have the stringified extra log fields\n- then, if an exception is a part of the log record, prints the formatted exception."]}

Index

Methods

Methods

format

  • format(record): str
  • {"content": ["Format the log record nicely.\n\nThis formats the log record so that it:\n- starts with the level (colorized, and padded to 5 chars so that it is nicely aligned)\n- then has the actual log message, if it's multiline then it's nicely indented\n- then has the stringified extra log fields\n- then, if an exception is a part of the log record, prints the formatted exception."]}


    Parameters

    • record: logging.LogRecord

    Returns str

Page Options