Commit Graph

9 Commits

Author SHA1 Message Date
jo c6940db289 feat: replace loguru with logging 2023-02-26 19:09:51 +02:00
jo 9130cf2895 feat(shared): allow to disable log rotate/retention 2022-05-05 09:42:34 +02:00
Jonas L 3a2e910f12
feat(shared): compress logs with gz (#1827) 2022-05-04 13:56:20 +02:00
jo 31cf8361be feat(shared): return log level and filepath 2022-02-22 17:33:48 +02:00
jo 80dfbd3179 fix(shared): set logger encoding and dont assume encoding
Older versions of python might have ascii as default, we
should not assume that the default encoding always is "utf-8"
when opening files.
2022-02-01 04:23:05 +02:00
jo b9502bc203 test(shared): fix linting 2022-01-26 10:15:35 +02:00
Jonas L 40130303dd
feat: replace verbosity flag with log-level flag (#1496)
using a string flag is better when using environement variables.
2022-01-08 08:16:08 +02:00
Jonas L 501e7844e3
feat(shared): let user provide the log level (#1493)
* feat(shared): let user provide the log level

Simplify the logger setup, as choice should be
left to the user to import or guess  the log level from verbosity.

* fix: linting
2022-01-07 17:35:58 +02:00
Jonas L 3a615cafa0
feat: create libretime_shared package (#1349)
* feat: create libretime_shared package

- We don't use pydantic.BaseSettings because of some
  incompatble loading behavior.

* fix: whitelist pydantic in pylintrc

* docs: update to new BaseConfig behavior

* docs: change confusing config filepath
2022-01-06 15:40:52 +02:00