Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize profiler log? #446

Open
aolko opened this issue Nov 8, 2023 · 3 comments
Open

Customize profiler log? #446

aolko opened this issue Nov 8, 2023 · 3 comments

Comments

@aolko
Copy link

aolko commented Nov 8, 2023

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

@eydun
Copy link

eydun commented Nov 10, 2023

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.

@aolko
Copy link
Author

aolko commented Nov 10, 2023

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?

@eydun
Copy link

eydun commented Nov 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants