matomo-org / plugin-LogViewer

View your Matomo logs within Matomo
GNU General Public License v3.0
5 stars 13 forks source link

[DX] show hint that log is configured to "screen" instead of error message that logfile is not found #22

Open dbu opened 4 years ago

dbu commented 4 years ago

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.

tsteur commented 4 years ago

Thanks @dbu totally agreed 👍

sgiehl commented 4 years ago

Actually the plugin does show a info that no supported log writer is configured:

image

Didn't that show up for you @dbu ?

dbu commented 4 years ago

hm, i think it did not show this message. but maybe i missed it because i am new to the interface and there is a lot of things being visible. or maybe this got improved since when i used the docker image.