Guest User

Untitled

a guest
Jun 23rd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. JLog::addLogger(
  2. array(
  3. // Sets file name
  4. 'text_file' => 'com_helloworld.log.php'
  5. ),
  6. // Sets messages of all log levels to be sent to the file
  7. JLog::ALL,
  8. // The log category/categories which should be recorded in this file
  9. // In this case, it's just the one category from our extension, still
  10. // we need to put it inside an array
  11. array('com_helloworld')
  12. );
  13.  
  14.  
  15. JLog::add(JText::_('COM_HELLOWORLD_ERROR_MESSAGE_123'), JLog::ERROR, 'com_helloworld');
Add Comment
Please, Sign In to add comment