what names space is Log::add_entry() ?
Permalink
Hi,
I am using 5.7.5.9.
I REALLY need a Log function.
I found some stuff that led me to this line of code:
But I get the error:
Class 'Concrete\Attribute\SpaSelector\Log' not found
What namespace am I missing?
also, is Log::ad_entry() depricated? Replacement?
Thanks so much,
Sean
I am using 5.7.5.9.
I REALLY need a Log function.
I found some stuff that led me to this line of code:
Log::addEntry("SpaSelector saveValue(" . $data . ")", $logType = null);
But I get the error:
Class 'Concrete\Attribute\SpaSelector\Log' not found
What namespace am I missing?
also, is Log::ad_entry() depricated? Replacement?
Thanks so much,
Sean
You can do this
I know I'm a little late to the party, but I've found this to work:
Logging in 5.7+ needs documenting. :(
\Log::addEntry(...)
Corrected response:
That is a awesome.
Thanks.
Thanks to mnakalay for correcting me.
That is a awesome.
Thanks.
Thanks to mnakalay for correcting me.
Actually Gondwana's answer is the most correct and efficient one. You really only need that one line of code and don't forget the backslash so you don't need to use the resource in the first hand.