TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Core\Log\LogManager Class Reference
Inheritance diagram for TYPO3\CMS\Core\Log\LogManager:
TYPO3\CMS\Core\SingletonInterface TYPO3\CMS\Core\Log\LogManagerInterface

Public Member Functions

 __construct ()
 
 reset ()
 
 registerLogger ($name)
 
 getLoggerNames ()
 
- Public Member Functions inherited from TYPO3\CMS\Core\Log\LogManagerInterface
 getLogger ($name='')
 

Public Attributes

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

Protected Member Functions

 getConfigurationForLogger ($configurationType, $loggerName)
 

Protected Attributes

 $loggers = []
 
 $rootLogger = null
 

Detailed Description

Global LogManager that keeps track of global logging information.

Inspired by java.util.logging

Definition at line 22 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 179 of file LogManager.php.

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

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

◆ getLoggerNames()

◆ registerLogger()

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

For use in unit test context only.

Parameters
string$name
Returns
void

Definition at line 105 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\Log\LogManagerInterface\getLogger(), and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Member Data Documentation

◆ $loggers

TYPO3\CMS\Core\Log\LogManager::$loggers = []
protected

Definition at line 39 of file LogManager.php.

◆ $rootLogger

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

Definition at line 46 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 32 of file LogManager.php.

◆ CONFIGURATION_TYPE_WRITER

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

Definition at line 27 of file LogManager.php.