?
avatar Qlimax90
Qlimax90
16 Sep 2014

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.

Steps to reproduce the issue

Try to use deprecated functions like JFactory::getEditor(), JError::raiseWarning() etc. in your component. I tried it in the main controller, views and subcontrollers...

Expected result

Deprecated message in the log files

Actual result

No message in the log files

System information (as much as possible)

PHP 5.5.11
XAMPP Environment
MYSQL 5.6.16
Joomla 3.3.3

Additional comments

avatar Qlimax90 Qlimax90 - open - 16 Sep 2014
avatar mbabker
mbabker - comment - 16 Sep 2014

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.

avatar Qlimax90
Qlimax90 - comment - 19 Sep 2014

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/.

avatar zero-24
zero-24 - comment - 19 Sep 2014

Thanks for the update @Qlimax90 moving to closed.

This comment was created with the J!Tracker Application at http://issues.joomla.org/.

avatar zero-24 zero-24 - change - 19 Sep 2014
Status New Closed
avatar jissues-bot
jissues-bot - comment - 19 Sep 2014

Set to "closed" on behalf of @zero-24 by The JTracker Application at issues.joomla.org

avatar jissues-bot jissues-bot - close - 19 Sep 2014
avatar zero-24 zero-24 - close - 19 Sep 2014
avatar jissues-bot jissues-bot - change - 19 Sep 2014
Closed_Date 0000-00-00 00:00:00 2014-09-19 08:14:35
avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment