frankenphp icon indicating copy to clipboard operation
frankenphp copied to clipboard

Logs are too noisey

Open kaihendry opened this issue 1 year ago • 2 comments

Describe you feature request

Is your feature request related to a problem? Please describe.

When I look through a dunglas/frankenphp log it has quite a bit of noise like:

  • certutil is not available
  • Caddyfile input is not formatted
  • Various install-php-extensions output

For example: https://github.com/kaihendry/php-mysql-timeout/actions/runs/11232966650/job/31225665359

Describe the solution you'd like Some guidance on how to output structured application logs

kaihendry avatar Oct 08 '24 10:10 kaihendry

Many logs are because you get build logs in your call to docker compose logs. Try to do a docker compose build before running up to skip them.

There is nothing we can do on our side about the one for the Caddyfile format, it's a known Caddy issue. You may also want to reduce the log level (info is maybe too verbose for you, try warning maybe?).

dunglas avatar Oct 08 '24 12:10 dunglas

Thank you btw for this project, it seems to nicest way to get PHP up & running for some tests.

I'm not quite sure how limit it to warning. That build before up idea is good. Thank you again.

kaihendry avatar Oct 08 '24 12:10 kaihendry