dibi icon indicating copy to clipboard operation
dibi copied to clipboard

Customize profiler log?

Open aolko opened this issue 2 years ago • 3 comments

How do i customize profiler log by prepending/appending custom text or wrapping the line in a custom text?

aolko avatar Nov 08 '23 08:11 aolko

You can extend the FileLogger-class: https://github.com/dg/dibi/blob/master/src/Dibi/Loggers/FileLogger.php

or perhaps even better; use Tracy for logging.

eydun avatar Nov 10 '23 13:11 eydun

You can extend the FileLogger-class: https://github.com/dg/dibi/blob/master/src/Dibi/Loggers/FileLogger.php

or perhaps even better; use Tracy for logging.

Hmmm, how about whoops? Can it handle that as well?

aolko avatar Nov 10 '23 23:11 aolko

I do not know much about Whoops. I guess using Whoops would require more work.

For Tracy there is also Panel: https://github.com/dg/dibi/blob/master/src/Dibi/Bridges/Tracy/Panel.php

eydun avatar Nov 11 '23 10:11 eydun