Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

plugin/theme development: logging works, sending messages to debugger does not

Started by Anna 5 hours ago · 0 replies · 8 views
5 hours ago

In my theme.php I want to do something whenever the theme config gets saved. I tried two hooks for that: onAdminSave and onApiConfigUpdated. Both let me send messages to the logs via $this->grav['log']->info('test log message');.

However, $this->grav['log']->addMessage($event, 'info'); seems to do nothing in both hooks – at least I can’t find any output anywhere, neither in the little bug message box nor in Clockwork. I got both methods from the Grav docs on debugging.

I think it’s still possible that I just don’t know where to look, but I am running out of ideas as to where this might still be hiding…

(the thing I want to do)

Suggested topics

Topic Participants Replies Views Activity
Support · by TomW, 2 hours ago
1 11 2 hours ago
Support · by Anna, 3 days ago
7 89 5 hours ago
Support · by Anna, 3 days ago
5 98 5 hours ago
Support · by stuart young, 2 days ago
2 65 2 days ago
Support · by BenLaKnet, 2 weeks ago
3 215 3 days ago