matomo-org / matomo-org/plugin-LogViewer
[DX] show hint that log is configured to "screen" instead of error message that logfile is not found
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 7
- Forks
- 13
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 8
Description
i installed the matomo docker image and wanted to see logs. i found the log viewer plugin, installed it, but then only got the error that tmp/logs/matomo.log does not exist. eventually i found that the default in global.ini.php is `log_writers[] = screen` and once i added a log section with `log_writers[] = file` in config.ini.php, the plugin started to show logs.
it would be nice if the plugin could check the log writers configuration and show a warning instead that the log writers need to include `file` (or database? did not try that) for the plugin to work.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the LogViewer handling around the missing tmp/logs/matomo.log error and compare it with global.ini.php and config.ini.php. Trace how log_writers is configured, then make the plugin explain that file logging must be enabled when the expected logfile is unavailable. Verify the resulting warning against the reported Docker configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- observability
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100