Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 69 lines (63 sloc) 1.473 kb
3cc3f5d Sam Moffatt Adding new logging structure
pasamio authored
1 <?php
d11a7f3 Louis Landry Reworking the log package.
LouisLandry authored
2 /**
3 * @package Joomla.Platform
4 * @subpackage Log
0a72863 Louis Landry Fixing file headers for both unit test and library files.
LouisLandry authored
5 *
4329ba0 Christophe Demko Tagging 11.4
chdemko authored
6 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
0a72863 Louis Landry Fixing file headers for both unit test and library files.
LouisLandry authored
7 * @license GNU General Public License version 2 or later; see LICENSE
d11a7f3 Louis Landry Reworking the log package.
LouisLandry authored
8 */
3cc3f5d Sam Moffatt Adding new logging structure
pasamio authored
9
fc5a10c Rouven Weßling Unify the style of the JPATH_PLATFORM check.
realityking authored
10 defined('JPATH_PLATFORM') or die;
ad8a9ff Sam Moffatt More updates
pasamio authored
11
3cc3f5d Sam Moffatt Adding new logging structure
pasamio authored
12 /**
6a1700c Louis Landry Renaming log formats to loggers.
LouisLandry authored
13 * Joomla! Logger Base Class
14 *
15 * This class is used to be the basis of logger classes to allow for defined functions
16 * to exist regardless of the child class.
17 *
d11a7f3 Louis Landry Reworking the log package.
LouisLandry authored
18 * @package Joomla.Platform
19 * @subpackage Log
20 * @since 11.1
3cc3f5d Sam Moffatt Adding new logging structure
pasamio authored
21 */
6a1700c Louis Landry Renaming log formats to loggers.
LouisLandry authored
22 abstract class JLogger
d11a7f3 Louis Landry Reworking the log package.
LouisLandry authored
23 {
3cc3f5d Sam Moffatt Adding new logging structure
pasamio authored
24 /**
fe90bf3 elinw applied patch
elinw authored
25 * Options array for the JLog instance.
26 * @var array
d11a7f3 Louis Landry Reworking the log package.
LouisLandry authored
27 * @since 11.1
3cc3f5d Sam Moffatt Adding new logging structure
pasamio authored
28 */
d11a7f3 Louis Landry Reworking the log package.
LouisLandry authored
29 protected $options = array();
3cc3f5d Sam Moffatt Adding new logging structure
pasamio authored
30
31 /**
71e27de JLog Exception, Class Name capitalization, and DBO
Amy Stephen authored
32 * @var array Translation array for JLogEntry priorities to text strings.
33 * @since 11.1
34 */
35 protected $priorities = array(
36 JLog::EMERGENCY => 'EMERGENCY',
37 JLog::ALERT => 'ALERT',
38 JLog::CRITICAL => 'CRITICAL',
39 JLog::ERROR => 'ERROR',
40 JLog::WARNING => 'WARNING',
41 JLog::NOTICE => 'NOTICE',
42 JLog::INFO => 'INFO',
43 JLog::DEBUG => 'DEBUG');
44
45 /**
d11a7f3 Louis Landry Reworking the log package.
LouisLandry authored
46 * Constructor.
47 *
8371313 Louis Landry Fixing up some formatting issues with the new coding standard.
LouisLandry authored
48 * @param array &$options Log object options.
d11a7f3 Louis Landry Reworking the log package.
LouisLandry authored
49 *
50 * @since 11.1
3cc3f5d Sam Moffatt Adding new logging structure
pasamio authored
51 */
8371313 Louis Landry Fixing up some formatting issues with the new coding standard.
LouisLandry authored
52 public function __construct(array &$options)
d11a7f3 Louis Landry Reworking the log package.
LouisLandry authored
53 {
54 // Set the options for the class.
55 $this->options = & $options;
3cc3f5d Sam Moffatt Adding new logging structure
pasamio authored
56 }
57
58 /**
d11a7f3 Louis Landry Reworking the log package.
LouisLandry authored
59 * Method to add an entry to the log.
60 *
8371313 Louis Landry Fixing up some formatting issues with the new coding standard.
LouisLandry authored
61 * @param JLogEntry $entry The log entry object to add to the log.
d11a7f3 Louis Landry Reworking the log package.
LouisLandry authored
62 *
b9c4efb Louis Landry Code formatting cleanup and adding a test inspector for JCLI
LouisLandry authored
63 * @return void
6871679 Andrew Eddie Registry package docblocks/code formatting sync'd with Joomla 1.7 repo.
eddieajau authored
64 *
d11a7f3 Louis Landry Reworking the log package.
LouisLandry authored
65 * @since 11.1
3cc3f5d Sam Moffatt Adding new logging structure
pasamio authored
66 */
d11a7f3 Louis Landry Reworking the log package.
LouisLandry authored
67 abstract public function addEntry(JLogEntry $entry);
3cc3f5d Sam Moffatt Adding new logging structure
pasamio authored
68 }
Something went wrong with that request. Please try again.