TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
LogManager Class Reference
Inheritance diagram for LogManager:
SingletonInterface LogManagerInterface

Public Member Functions

 __construct ()
 
 reset ()
 
 registerLogger ($name)
 
 getLoggerNames ()
 
- Public Member Functions inherited from 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 ( )

Constructor

Definition at line 51 of file LogManager.php.

References LogManager\$rootLogger, and GeneralUtility\makeInstance().

Member Function Documentation

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
Psr
Returns
array

Definition at line 179 of file LogManager.php.

References $GLOBALS, and LogLevel\validateLevel().

getLoggerNames ( )

For use in unit test context only.

Returns
array

Definition at line 115 of file LogManager.php.

registerLogger (   $name)

For use in unit test context only.

Parameters
string$name
Returns
void

Definition at line 105 of file LogManager.php.

reset ( )

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

Returns
void

Definition at line 62 of file LogManager.php.

Member Data Documentation

$loggers = []
protected

Definition at line 39 of file LogManager.php.

$rootLogger = null
protected

Definition at line 46 of file LogManager.php.

Referenced by LogManager\__construct().

const CONFIGURATION_TYPE_PROCESSOR = 'processor'

Definition at line 32 of file LogManager.php.

const CONFIGURATION_TYPE_WRITER = 'writer'

Definition at line 27 of file LogManager.php.