Inherits Log4PHPLogger.
Public Member Functions | |
| log (\LoggerLevel $level, $message, $throwable=null) | |
Static Public Member Functions | |
| static | getHierarchy () |
| static | getLogger ($name) |
| static | getRootLogger () |
| static | clear () |
| static | resetConfiguration () |
| static | shutdown () |
| static | exists ($name) |
| static | getCurrentLoggers () |
| static | configure ($configuration=null, $configurator=null) |
class used to adjust file and line log
|
static |
Clears all Logger definitions from the logger hierarchy.
|
static |
Configures log4php.
This method needs to be called before the first logging event has occured. If this method is not called before then the default configuration will be used.
| string | array | $configuration | Either a path to the configuration file, or a configuration array. |
| string | LoggerConfigurator | $configurator | A custom configurator class: either a class name (string), or an object which implements the LoggerConfigurator interface. If left empty, the default configurator implementation will be used. |
|
static |
check if a given logger exists.
| string | $name | logger name |
|
static |
|
static |
Returns the hierarchy used by this Logger.
Caution: do not use this hierarchy unless you have called initialize(). To get Loggers, use the Logger::getLogger and Logger::getRootLogger methods instead of operating on on the hierarchy directly.
|
static |
Returns a Logger by name. If it does not exist, it will be created.
| string | $name | The logger name |
|
static |
Returns the Root Logger.
| log | ( | \LoggerLevel | $level, |
| $message, | |||
$throwable = null |
|||
| ) |
|
static |
Destroy configurations for logger definitions
|
static |
Safely close all appenders.