I'm currently using the following to load JLog:


I'd like to make use of JLoader, however I'm unsure as to which file I need to register. Would I use:

JLoader::register('JLog', JPATH_LIBRARIES . '/joomla/log/log.php');


JLoader::register('JLogger', JPATH_LIBRARIES . '/joomla/log/logger.php');

or both?


You will need only this:

JLoader::register('JLog', JPATH_LIBRARIES . '/joomla/log/log.php');

This is the main class for logging.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.