By default, Kimai logs to a file at
The contents of the log file can also be seen in the
Doctor screen in Kimai, which is available for super-admin users
The log mechanism is configured to collect, but not write logs. Only in the case of an error, all collected logs for the request will be dumped to the logfile.
The logilfe is not rotated, which is critical to understand. Even if only errors are logged, its size will increase over the time.
To flush the logfile from time to time, you have several options:
Be aware, changing the logging will lead to a non-functional “logging” section in the
monolog: handlers: nested: type: rotating_file path: '%kernel.logs_dir%/%kernel.environment%.foooooo.log' max_files: 10
The configuration process is the same as above:
monolog: handlers: main: path: php://stderr
You can read this article to understand more.