Class JLog
Joomla! Log Class
This class hooks into the global log configuration settings to allow for user configured logging events to be sent to where the user wishes them to be sent. On high load sites Syslog is probably the best (pure PHP function), then the text file based loggers (CSV, W3c or plain Formattedtext) and finally MySQL offers the most features (e.g. rapid searching) but will incur a performance hit due to INSERT being issued.
Copyright: Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
License: General Public License version 2 or later; see LICENSE
Since: 11.1
Located at joomla/log/log.php
Methods summary
protected
|
|
public static
|
#
add( mixed $entry, integer $priority =
Method to add an entry to the log. |
public static
|
|
protected
|
#
addLoggerInternal( array $options, integer $priorities =
Add a logger to the JLog instance. Loggers route log entries to the correct files/systems to be logged. This method allows you to extend JLog completely. |
public static
|
#
setInstance(
Returns a reference to the a JLog object, only creating it if it doesn't already exist. Note: This is principally made available for testing and internal purposes. |
protected
|
|
protected
array
|
#
findLoggers( integer $priority, string $category )
Method to find the loggers to use based on priority and category values. |
Magic methods summary
Constants summary
integer |
ALL
|
30719 |
#
All log priorities. |
integer |
EMERGENCY
|
1 |
#
The system is unusable. |
integer |
ALERT
|
2 |
#
Action must be taken immediately. |
integer |
CRITICAL
|
4 |
#
Critical conditions. |
integer |
ERROR
|
8 |
#
Error conditions. |
integer |
WARNING
|
16 |
#
Warning conditions. |
integer |
NOTICE
|
32 |
#
Normal, but significant condition. |
integer |
INFO
|
64 |
#
Informational message. |
integer |
DEBUG
|
128 |
#
Debugging message. |
Properties summary
protected static
|
$instance |
#
The global JLog instance. |
protected
array
|
$configurations |
#
Container for JLogLogger configurations. |
protected
|
$loggers |
#
Container for JLogLogger objects. |
protected
array
|
$lookup |
#
Lookup array for loggers. |