Florian Best
Florian Best
→ https://github.com/go-logfmt/logfmt/issues/16
Current way to achieve it more or less: ```python class Formatter(Logfmter): def __init__(self, keys, mapping, **kwargs): super().__init__(keys=keys, mapping=mapping, datefmt="%Y-%m-%d %H:%M:%S", **kwargs) def format(self, record): when = self.formatTime(record, "%z") return f"{when}...
I think it might be nicer If `Logfmter` would provide a `logging.Filter` as alternative way to use. Then one can setup the log format like: ```python import logging from logfmter...
We would need some flag in `Logfmter` that `msg` should not be logged, to realize this without the workaround.
The filer approach is not good, because adding multiple filters make the order of execution important. I wrote a formatter which combines both ways of formatting resulting in: ``` 2025-09-08T13:04:49.801...
I provided a parser in #51
This is obsolete by https://github.com/josheppinette/python-logfmter/pull/43 allowing to pass `ignored_keys=["foo"]`, making a further filter unnecessary.
I thought that every line could raise an exception and meant exactly this. So we mark every line where a exception actually happened (blue). All others are ignored. Or vice...
`Distribution` sets `Suite` and `Codename` in the `Release` file. Suite can be specified since https://github.com/aptly-dev/aptly/commit/ae61cbb4c06f9c3047fc09b6cc56588791a247b8 and only defaults to "Distribution".
Codename can be specified via `Distribution`, which sets `Suite` and `Codename` in the `Release` file.