Skip to main content

No project description provided

Project description

Example:

from logging_settings import LoggingSettings, setup_logging

LOKI_URL = "http://loki"
LOKI_TAGS = {"name": "my_app"}

def startup(loki: bool = True) -> None:
    log_settings = LoggingSettings(
        loglevel="DEBUG",
        rotating_file_handler=True,
        logs_dir="/var/log/my_app",
        filename="my-app.log",
    )

    if loki:
        log_settings.loki_handler = loki
        log_settings.loki_tags = LOKI_TAGS

    setup_logging(log_settings)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

logging_settings-0.1.15.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

logging_settings-0.1.15-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file logging_settings-0.1.15.tar.gz.

File metadata

  • Download URL: logging_settings-0.1.15.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.12.10 Linux/6.1.0-38-amd64

File hashes

Hashes for logging_settings-0.1.15.tar.gz
Algorithm Hash digest
SHA256 8608f00ed601d6845bbb4f4bc6f5b38c67e966ec3251534dff7bfb662f192f5b
MD5 3b6d05b606fd5e48b53c232b1be65b03
BLAKE2b-256 ac65a89355a51af6e9ab83b2ec1ad706f657ce02a68d51732a80122926772d04

See more details on using hashes here.

File details

Details for the file logging_settings-0.1.15-py3-none-any.whl.

File metadata

  • Download URL: logging_settings-0.1.15-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.12.10 Linux/6.1.0-38-amd64

File hashes

Hashes for logging_settings-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 feb5206d79cb320630e4ad3b500b7675624a35751f7ad3a4f2cdb98782e3b75f
MD5 8b4315816d341b3371f90b1805ea2459
BLAKE2b-256 6310e797e7093efe30bd8eb10c886d0c99ffc7c25943161a037bf052ef123b10

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page