Plain is headed towards 1.0! Subscribe for development updates →

Logging

Default logging settings and key-value logger.

In Python, logging can be a surprisingly complex topic.

So Plain aims for easy-to-use defaults that "just work".

app_logger

The default app_logger doesn't do much!

But it is paired with the default settings to actually show the logs like you would expect, without any additional configuration.

from plain.logs import app_logger


def example_function():
    app_logger.info("Hey!")

app_logger.kv

1from .configure import configure_logging
2from .loggers import app_logger
3from .utils import log_response
4
5__all__ = ["app_logger", "log_response", "configure_logging"]