Skip to content

How to disable multiple logs ? #1043

Answered by khushal21
khushal21 asked this question in Q&A
Discussion options

You must be logged in to vote

Got my answer.

You can disable all logging activities in the current request by calling

activity()->disableLogging();

If you want to enable logging again call activity()->enableLogging().

This is described in the documentation here : https://spatie.be/docs/laravel-activitylog/v4/advanced-usage/disabling-logging

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by khushal21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant