TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Log\LogManager Class Reference
Inheritance diagram for TYPO3\CMS\Core\Log\LogManager:
TYPO3\CMS\Core\SingletonInterface

Public Member Functions

 __construct ()
 
 reset ()
 
 registerLogger ($name)
 
 getLoggerNames ()
 

Public Attributes

const CONFIGURATION_TYPE_WRITER = 'writer'
 
const CONFIGURATION_TYPE_PROCESSOR = 'processor'
 

Protected Member Functions

 getConfigurationForLogger ($configurationType, $loggerName)
 

Protected Attributes

 $loggers = array()
 
 $rootLogger = NULL
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Global LogManager that keeps track of global logging information.

Inspired by java.util.logging

Author
Ingo Renner ingo@.nosp@m.typo.nosp@m.3.org
Steffen Müller typo3.nosp@m.@t3n.nosp@m.ode.c.nosp@m.om
Steffen Gebert steff.nosp@m.en.g.nosp@m.ebert.nosp@m.@typ.nosp@m.o3.or.nosp@m.g

Definition at line 25 of file LogManager.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Log\LogManager::__construct ( )

Member Function Documentation

◆ getConfigurationForLogger()

TYPO3\CMS\Core\Log\LogManager::getConfigurationForLogger (   $configurationType,
  $loggerName 
)
protected

Returns the configuration from $TYPO3_CONF_VARS['LOG'] as hierarchical array for different components of the class hierarchy.

Parameters
string$configurationTypeType of config to return (writer, processor)
string$loggerNameLogger name
Exceptions

Definition at line 171 of file LogManager.php.

References $GLOBALS, $result, and TYPO3\CMS\Core\Log\LogLevel\validateLevel().

Referenced by TYPO3\CMS\Core\Log\LogManager\getLoggerNames().

◆ getLoggerNames()

TYPO3\CMS\Core\Log\LogManager::getLoggerNames ( )

For use in unit test context only.

Returns
array

Definition at line 112 of file LogManager.php.

References TYPO3\CMS\Core\Log\LogManager\getConfigurationForLogger(), and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

◆ registerLogger()

TYPO3\CMS\Core\Log\LogManager::registerLogger (   $name)

For use in unit test context only.

Parameters
string$name
Returns
void

Definition at line 103 of file LogManager.php.

◆ reset()

TYPO3\CMS\Core\Log\LogManager::reset ( )

For use in unit test context only. Resets the internal logger registry.

Returns
void

Definition at line 62 of file LogManager.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Member Data Documentation

◆ $loggers

TYPO3\CMS\Core\Log\LogManager::$loggers = array()
protected

Definition at line 40 of file LogManager.php.

◆ $rootLogger

TYPO3\CMS\Core\Log\LogManager::$rootLogger = NULL
protected

Definition at line 47 of file LogManager.php.

Referenced by TYPO3\CMS\Core\Log\LogManager\__construct().

◆ CONFIGURATION_TYPE_PROCESSOR

const TYPO3\CMS\Core\Log\LogManager::CONFIGURATION_TYPE_PROCESSOR = 'processor'

Definition at line 34 of file LogManager.php.

◆ CONFIGURATION_TYPE_WRITER

const TYPO3\CMS\Core\Log\LogManager::CONFIGURATION_TYPE_WRITER = 'writer'

Definition at line 30 of file LogManager.php.