Skip to content

Is there a way of replacing the logging formatter? #1289

Answered by abhinavsingh
EpicBirb asked this question in Q&A
Discussion options

You must be logged in to vote

@EpicBirb Yes. You can either:

  1. Pass custom --log-format argument to proxy instance
  2. Write a on_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.

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@EpicBirb
Comment options

Answer selected by EpicBirb
Comment options

You must be logged in to vote
1 reply
@EpicBirb
Comment options

Comment options

You must be logged in to vote
6 replies
@abhinavsingh
Comment options

@abhinavsingh
Comment options

@EpicBirb
Comment options

@abhinavsingh
Comment options

@EpicBirb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants