IshaS
IshaS

Reputation: 837

How to write custom event log in monolog library?

I am using Laravel to build my web site.I installed monolog library to keep logging. I want to log for click event. how can I do this? Please help.

Upvotes: 1

Views: 453

Answers (1)

hannesvdvreken
hannesvdvreken

Reputation: 4988

Clicks happen on front-end side.

If you want to log every page load (PHP call) you can use App::before in app/filters.php to log every request. More information on that here.

If you want to log every click you might want to use Google Analytics' event tracking. Write some JS to handle all click events and send them to ga. More information here.

Upvotes: 1

Related Questions