Skip to content

Log Request only #23

Answered by bilfeldt
loranger asked this question in Q&A
Dec 10, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi,

Is there a simple way to log request only ?

@loranger if you just want a few request to be logged like that, then you should use the conditional logger where you can specify your own class.

if on the other hand you want all requests to log like that, then you can implement your own class and register that in the config logger. You could consider making a new class that extends Bilfeldt\LaravelHttpClientLogger\HttpLogger where it overrides the log method

Replies: 1 comment 1 reply

Comment options

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

Answer selected by loranger
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