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

Uploaded Python 3

File details

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

File metadata

  • Download URL: logging_settings-0.1.13.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.13.tar.gz
Algorithm Hash digest
SHA256 5cae23696d6dabdbf696adb08adc7a933799761317f084d0493cea5b36c5a104
MD5 16346f37b95fd8cda799897475e1e022
BLAKE2b-256 724397a2ba63ceb34ba91329d4d34a45e5b84165da48cdbbe232cf5b2715ef1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: logging_settings-0.1.13-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.13-py3-none-any.whl
Algorithm Hash digest
SHA256 914e94f32227f22aa5f8c9d7f64bbdd71e0b5e86840d93163ce63b308e1ad74a
MD5 f47ceea6a1622dd53dd4994b1a71413a
BLAKE2b-256 d660954dbb684b5dd17d5e27e11e6f988ad74a517a8e8a7fb922d09714029efd

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