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?

1 Answer 1

2

You will need only this:

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

This is the main class for logging.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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