Mirage
Mirage

Reputation: 31548

How can i use symfony logger to write data in database

I have the separate database mysql table with fields like

Message ---type ------date

I want to alog all messages like error , info , waring in database so that i can see the past history of the site and also in case of some problem. i can see whats going on

How can i do that

Upvotes: 1

Views: 6970

Answers (1)

l3l0
l3l0

Reputation: 3393

You need to write custom monolog handler. For details check those links doctrine monolog handler issue and the official documentation extending monolog

Upvotes: 5

Related Questions