Is there a way of replacing the logging formatter? #1289
-
As the title says Refer to this: https://docs.python.org/3/library/logging.html#logging.Formatter |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
@EpicBirb Yes. You can either:
|
Beta Was this translation helpful? Give feedback.
-
Of-course, I = INFO |
Beta Was this translation helpful? Give feedback.
-
As I explained it's very much possible. You can take inspiration from ProgramNamePlugin which adds updates You can add your own keys too. Those keys are then available within your log format. You can also return None from your Best |
Beta Was this translation helpful? Give feedback.
@EpicBirb Yes. You can either:
--log-format
argument toproxy
instanceon_access_log
handler in your plugin which does all the logging for you. Your handler can return None as context which will disable core logging.