Registering with provider classes in CakePHP

I have a CakePHP application that uses a number of provider classes, including one for email processing. We are having problems with missing email messages, so we want to add a log message every time an email is sent. The obvious place for this is the email class submission function, but the $ this-> log does not work because the provider object is not built on CakePHP.

Is there anyway access to the CakePHP logging system from a class other than CakePHP?

Thanks in advance

+3
source share
1 answer

I found a hint of this on another site. Decision

Debugger::log()

, . .

+4

Source: https://habr.com/ru/post/1763814/


All Articles