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
Logging messages from console are not getting logged anywhere #17053
Comments
It seems to indeed not log to the matomo.log even when file logging is enabled. I can only assume this is on purpose currently. Haven't found yet where this is done though. Do you maybe know @diosmosis ? Generally, we recommend people for cronjobs to pipe the output to a file like
Does this maybe help? |
Thx, i am using Windows. Logging like this in cron is not possible when using the Task Scheduler directly with arguments fields (as it is default). |
@tsteur it's in Monolog/config/cli.php, the |
Thanks @diosmosis @mattab @diosmosis @sgiehl does maybe anyone remember why that was done? I reckon if file logger is enabled, it be great to additionally also log to file. But maybe there's a reason for it... or it just was never implemented or forgotten. |
Seems like it was on purpose, but I'm not sure why. Maybe there was the assumption CLI commands would be redirected if the output was to be saved. It would be easy to fix I think, just use a |
Don't know a reason either. Guess would be fine to log them to file as well |
👍 I'll put it into 4.4 as it would be useful potentially on cloud too. When a file logger is configured, it should also log to file. |
When a file logger is configured, and log level is set for example to warn, then it should log all warning messages also to the file. |
they are just shown on the console, there is no entry for hard error message in php_error.log (everything is silent) but also the logmessages manually shown are not recorded anywhere even debug logging is enabled in general.
Maybe it is worth to allow a seperate log file for the console. This includes especially the Tasks Scheduler Outputs and all other messages on the console.
The only messages i see in the debug log are when some archiving is done, but only the detailed sql queries, not the other messages what is now happening.
The text was updated successfully, but these errors were encountered: