I believe the JLog documentation is incorrect with this:
Often you may wish to display an error log message and log to an error file. Joomla allows this natively through the JLog::add function. For example:
JLog::a dd(JText::_('JTEXT_ERROR_MESSAGE'), JLog::WARNING, 'jerror');
Adding the category of jerror means that this message will also be displayed to users. To only write to file you can easily drop that parameter and simply use
JLog::a dd(JText::_('JTEXT_ERROR_MESSAGE'), JLog::WARNING);
I've found the exact opposite in J3.3. When I use:
JLog::add(JText::_('JTEXT_ERROR_MESSAGE'), JLog::WARNING);
It logs to the user as well. If I add the category it doesn't.
Can someone confirm that I'm not going nuts or explain my misunderstanding?
If I'm right, how do you go about contributing a documentation change request?