ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

class documentation

class _ApplicationFormatter(logging.Formatter): (source)

View In Hierarchy

Format record creation times in the application's timezone.

The formatter reads the active zone for each record so cached instances follow configuration changes.

Method formatTime Format a log record's timestamp in the active application timezone.
def formatTime(self, record: logging.LogRecord, datefmt: str | None = None) -> str: (source)

Format a log record's timestamp in the active application timezone.

Parameters
record:logging.LogRecordRecord whose creation timestamp supplies the instant.
datefmt:str or None, optionalExplicit strftime pattern, or None for the standard logging format.
Returns
strFormatted local timestamp, including milliseconds when configured.