Skip to main content

No project description provided

Project description

logging-lib

Библиотека для логирования сервисов Твой ФФ!

Функционал

Форматирование логов в общий для всех бэкендов JSON-формат

pypi tg

Сценарий использования

  1. В requirements.txt добавьте logging-profcomff
  2. Скопируйте из /gunicorn_logging_examples обе конфигурации
  3. Вставьте их в корень проекта
  4. Добавьте в Dockerfile ARG CONF_FILE
  5. В Dockerfile добавьте GUNICORN_CMD_ARGS в качестве env переменной
  6. Пропишите туда "--log-config $CONF_FILE"
  7. В Actions в запуск добавьте(прод) --build-args: docker build --build-arg CONF_FILE=logging_prod.conf
  8. В Actions в запуск добавьте(тест) --build-args: docker build --build-arg CONF_FILE=logging_test.conf

Contributing

  • Основная информация по разработке наших приложений

  • Ссылка на страницу с информацией по разработке logging-lib

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_profcomff-2024.8.4.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

logging_profcomff-2024.8.4-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file logging_profcomff-2024.8.4.tar.gz.

File metadata

  • Download URL: logging_profcomff-2024.8.4.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for logging_profcomff-2024.8.4.tar.gz
Algorithm Hash digest
SHA256 fb73f779b3fb1e3012fda4a1481562ae6f4daddf2d83cb78c2646874429c5545
MD5 6532b8fd4a3956fb00c02e4ae42d4637
BLAKE2b-256 be411703b5336fe2131fe175586a37d683be70e1057195c5addcfa86570d3c16

See more details on using hashes here.

File details

Details for the file logging_profcomff-2024.8.4-py3-none-any.whl.

File metadata

File hashes

Hashes for logging_profcomff-2024.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 988d44d12edf05e693223d91fb5b6b354efe84237b8a70739e92a7484f71273a
MD5 408cdfa70c05e7e535902b6872206edd
BLAKE2b-256 f60787bde36d813542e9d4c031c5e2763cde9e513abadbee11071d4ad0f43b86

See more details on using hashes here.

Supported by

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