Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Базовое логирование #15

Open
dart-mih opened this issue Feb 26, 2025 · 0 comments · May be fixed by #27
Open

Базовое логирование #15

dart-mih opened this issue Feb 26, 2025 · 0 comments · May be fixed by #27
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@dart-mih
Copy link
Collaborator

Нужно создать базовый модуль с логированием в котором задается формат логов и их поля (предлагаю хранить в формате json)
Полезные ссылочки: https://docs.python.org/3/library/logging.config.html , https://habr.com/ru/articles/766010/ , https://sky.pro/wiki/python/optimizatsiya-logirovaniya-v-python-odnokratnaya-initsializatsiya/

Глобальная идея такая:

  • есть класс где определяется формат
  • в каждом модуле вызывается этот класс создается новый объект логирования
  • логи летят в формате json и сохраняются в файл (ы)
  • при запуске можно настроить -> выводить их в консоль или нет (флаги или переменные среды - как получится)
@dart-mih dart-mih added the enhancement New feature or request label Feb 26, 2025
@dart-mih dart-mih added this to the 2 iteration milestone Feb 26, 2025
@spanwalla spanwalla linked a pull request Mar 7, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants