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)

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

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.14.tar.gz (3.5 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.14-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: logging_settings-0.1.14.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.1 Windows/10

File hashes

Hashes for logging_settings-0.1.14.tar.gz
Algorithm Hash digest
SHA256 f81db5c4bfba1ae911e2785d597d3d42416d3b58aa7dbcd25649dca0a7cdb116
MD5 8bf7642712f06c42e3904dc6720ee21f
BLAKE2b-256 0840fb2a1a2f60cfd7c2c04f8f251c4355609fd3209b3274d7760795604627fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: logging_settings-0.1.14-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.1 Windows/10

File hashes

Hashes for logging_settings-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 7cbf7c91b70971f433a4d61bdf8d1ce304e20d5cc56cd2038c6f6bfad2e2ceb4
MD5 863c61c8b5443c356f7db45a07c1d766
BLAKE2b-256 d468bc36a991b1ed38c216490c4eaeb90b63a2bddea133516cf16d73d8abf8c3

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