nolar / kopf

A Python framework to write Kubernetes operators in just a few lines of code

Home Page:https://kopf.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logging: overriding the log formatter

portswigger-tim opened this issue · comments

Keywords

logger formatting

Problem

I'd like to make use of the logfmt logging, er, format. Is there any way to override the logger formatter? I'm willing to open a PR to add either:

  1. a LOGFMT format
  2. the ability to pass in a custom log formatter class via OperatorSettings, similar to overriding posting levels

Any ideas or opinions on this would be appreciated :)

@portswigger-tim did you have any luck with this?