Missing logfile - can't get kimai (docker) to write any logs #431
-
Hi there, maybe someone can point me in the right direction... I'm currently developing a kimai plugin and have trouble getting uncaught php errors on our production system logged. The Both directories
When I raise a php error in my plugin, I get the following error in my browser as expected: I tried to change the monolog:
handlers:
main:
type: error_log
level: debug and reloaded kimai with I raised an "Internal server error" similiar to the screenshot above by stopping a timesheet twice by opening two tabs as described here: Maybe I got something about logging in kimai fundamentally wrong - any help appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Docker images are not writing to the logfile, but to stdout => the docker log output (don't know how that is called). Developing in prod environment is a terrible idea. Setup the dev image with APP_ENV |
Beta Was this translation helpful? Give feedback.
-
Better still use a dev tag:
or
And then use I can't help you with better instructions because I have no idea how you are start the container, or what OS. |
Beta Was this translation helpful? Give feedback.
-
Sorry for resurrecting an old post, but is it still true that Kimai installed with Docker does not produce any logs in /var/log/prod.log ? |
Beta Was this translation helpful? Give feedback.
-
The containers should be logging to standard out. If they logged to file they would eventually fill up your disk and you'd never know why. Try attaching to the container:
or
|
Beta Was this translation helpful? Give feedback.
Docker images are not writing to the logfile, but to stdout => the docker log output (don't know how that is called).
Developing in prod environment is a terrible idea. Setup the dev image with APP_ENV