Hi everyone,
currently i am in trouble with joomlas JLog class.
To optimize my own component code, i tried to provocate some deprecated error log messages, which should be logged in joomlas "log" directory.
It does not really matter where i try to use an deprecated method, i don't get why it does not work. PHP and Joomlas error_reporting is on developement status (-1). Hardcoded php function calls (for example ereg()) throws an php error.
Also core components like com_contents controller constructor can't provocate a logging.
Wrong logins in admin backend in contrast to the frontend lead to a successfull logging.
Try to use deprecated functions like JFactory::getEditor(), JError::raiseWarning() etc. in your component. I tried it in the main controller, views and subcontrollers...
Deprecated message in the log files
No message in the log files
PHP 5.5.11
XAMPP Environment
MYSQL 5.6.16
Joomla 3.3.3
wow, i didn't notice that there are so many options in the debug plugin, activating deprecated calls fixed the issue. thank you very much - problem fixed.
This comment was created with the J!Tracker Application at http://issues.joomla.org/.
Thanks for the update @Qlimax90 moving to closed.
This comment was created with the J!Tracker Application at http://issues.joomla.org/.
Status | New | ⇒ | Closed |
Set to "closed" on behalf of @zero-24 by The JTracker Application at issues.joomla.org
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-09-19 08:14:35 |
Labels |
Added:
?
|
Do you have a
JLog::addLogger()
call somewhere in your code to instruct Joomla to write to a log file? If a logger hasn't been enabled and monitoring the category(ies) you've specified, no statements will be written.In the System - Debug plugin is an option to turn on a logger catching
JLog::add
calls with the deprecated category.