Skip to content
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

Logger not working in version 2.15.0? #9103

Closed
d33a opened this issue Oct 27, 2015 · 4 comments
Closed

Logger not working in version 2.15.0? #9103

d33a opened this issue Oct 27, 2015 · 4 comments
Labels
answered For when a question was asked and we referred to forum or answered it. Bug For errors / faults / flaws / inconsistencies etc. c: Website matomo.org For issues related to our matomo.org website.

Comments

@d33a
Copy link

d33a commented Oct 27, 2015

Hi guys,

Since we upgraded to the latest version, piwik stopped writing anything to the logs.

This is my configuration for development.

[log]
; Possible values are "screen" (default value), "file" and "database" (logs to tables logger_*)
log_writers[] = file
; Possible values are ERROR, WARN, INFO, DEBUG
log_level = INFO
; if configured to log to file, log entries will be written to this file
logger_file_path = tmp/logs/piwik.log

Checked that it has full permissions to write in that location, tried switching it to database, nothing comes out. We're running the archive process as well, no output, not even in debug.

Tried changing the /var/www/piwik/plugins/Monolog/config/config.php to override the values, nothing.

Any input on this?

@tsteur
Copy link
Member

tsteur commented Oct 27, 2015

I just tested it on my server and works fine. Can you check if the "Monolog" plugin is actually enabled under "Administration" => "Plugins"?

@d33a
Copy link
Author

d33a commented Oct 29, 2015

Hi,

Yes, that fixed the issue. I think it's nice that you deprecated the internal logging feature and created the Monolog plugin. However, this plugin should be enabled by default. Moreover, the documentation on this page should be updated http://piwik.org/faq/troubleshooting/faq_115/ since it doesn't mention anything about enabling the Monolog plugin.

@tsteur
Copy link
Member

tsteur commented Oct 29, 2015

The plugin should have been activated automatically by our system. Possibly the config file was not writable.

@mattab I leave this issue open for 2 things:

  • Add to FAQ to make sure Monolog plugin is updated
  • Run Piwik updater only when config file is writable, this will avoid many issues in the future

We can also create separate issues

@tsteur tsteur added Bug For errors / faults / flaws / inconsistencies etc. c: Website matomo.org For issues related to our matomo.org website. labels Oct 29, 2015
@mattab
Copy link
Member

mattab commented Oct 30, 2015

@mattab mattab closed this as completed Oct 30, 2015
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Oct 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it. Bug For errors / faults / flaws / inconsistencies etc. c: Website matomo.org For issues related to our matomo.org website.
Projects
None yet
Development

No branches or pull requests

3 participants