db
ExtendedLog4PHPLogger Class Reference

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)
 

Detailed Description

class used to adjust file and line log

Member Function Documentation

◆ clear()

static clear ( )
static

Clears all Logger definitions from the logger hierarchy.

Returns
boolean

◆ configure()

static configure (   $configuration = null,
  $configurator = null 
)
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.

Parameters
string | array$configurationEither a path to the configuration file, or a configuration array.
string | LoggerConfigurator$configuratorA 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.

◆ exists()

static exists (   $name)
static

check if a given logger exists.

Parameters
string$namelogger name
Returns
boolean

◆ getCurrentLoggers()

static getCurrentLoggers ( )
static

Returns an array this whole Logger instances.

See also
Logger
Returns
array

◆ getHierarchy()

static getHierarchy ( )
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.

Returns
LoggerHierarchy

◆ getLogger()

static getLogger (   $name)
static

Returns a Logger by name. If it does not exist, it will be created.

Parameters
string$nameThe logger name
Returns
ExtendedLog4PHPLogger

◆ getRootLogger()

static getRootLogger ( )
static

Returns the Root Logger.

Returns
LoggerRoot

◆ log()

log ( \LoggerLevel  $level,
  $message,
  $throwable = null 
)

◆ resetConfiguration()

static resetConfiguration ( )
static

Destroy configurations for logger definitions

◆ shutdown()

static shutdown ( )
static

Safely close all appenders.

Deprecated:
This is no longer necessary due the appenders shutdown via destructors.

The documentation for this class was generated from the following file: