1

I am using this image for php 7.0.33 apache from docker hub.

I want to create debug logs so that I see them in the container log (docker logs my-php-container) without it being an error.

Trying apache_note() (logs nothing) and error_log('test', null,'/proc/self/fd/1') (logs as an error) was not successful. Also using syslog() is not an option since this log is not available when running docker logs.

Is there some way to actually achieve that?

edit: here is the result of my tests log testing results

Theo
  • 2,262
  • 3
  • 23
  • 49

0 Answers0