Skip to main content

Variables

  • custom_logger: logging.Logger: A custom logger instance for the Systematica library.

build_logger

Build a custom logger with a RichHandler for better formatting. This logger will not propagate messages to the root logger. Parameters: Returns:

UTCFormatter

A custom logging formatter that formats timestamps in UTC. Initialize the formatter with specified format strings. Initialize the formatter either with the specified format string, or a default as described above. Allow for specialized date formatting with the optional datefmt argument. If datefmt is omitted, you get an ISO8601-like (or RFC 3339-like) format. Use a style parameter of %, { or $ to specify that you want to use one of %-formatting, str.format ({}) formatting or string.Template formatting in your format string. Parameters: Raises:

Ancestors

  • logging.Formatter

Methods

formatTime

Convert the record’s creation timestamp to a UTC datetime object. If a datefmt is provided, format the datetime according to that format. Parameters: Returns:

Logger

A logger class that provides logging functionality for different strategies. Initialize the Logger. Parameters:

Descendants

  • systematica.portfolio.messengers.base.BaseMessenger
  • systematica.utils.logger.TimeRotatingLogger

Static methods

get_logger_instance

Get a logger instance for a specific strategy. Parameters: Returns:

Methods

info

Log a message at the INFO level. Parameters:

error

Log a message at the ERROR level. Parameters:

warning

Log a message at the WARNING level. Parameters:

TimeRotatingLogger

A logger class which rotates at midnight. Initialize the Logger. Parameters:

Ancestors

  • systematica.utils.logger.Logger

Static methods

get_logger_instance

Get TimedRotatingFileHandler that rotates at midnight. Parameters: Returns: