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.16.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.16-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: logging_settings-0.1.16.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.16.tar.gz
Algorithm Hash digest
SHA256 8cc3dd0e0a66c0bf7c8dadba31695cb8940a8bee216ff7581d65043efd6606b4
MD5 3a9c125b9f268d2cab4336fed4b898c1
BLAKE2b-256 4ba21a60845c2fd5205ce529f924b998352bfea68cc4c282d0bfca7b81b8964e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: logging_settings-0.1.16-py3-none-any.whl
  • Upload date:
  • Size: 5.1 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.16-py3-none-any.whl
Algorithm Hash digest
SHA256 87fb10d0b785ac9da2a9fe7dac722a1860a4f73912dbb9109c4fed13b08cad41
MD5 489cf38fbf5590197f418064f75bece6
BLAKE2b-256 373e33aa078f2046effa11e321d672137a110b5a3c73712bb1e2a985307b52fd

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