1

I'm currently using the following to load JLog:

jimport('joomla.log.log');

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');

or:

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

or both?

2

You will need only this:

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

This is the main class for logging.

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.