Class LoggerPatternConverterSuperglobal
Returns a value from a superglobal array corresponding to the given key.
Option: the key to look up within the superglobal array
Also, it is possible that a superglobal variable is not populated by PHP because of the settings in the variables-order ini directive. In this case the converter will return an empty value.
- LoggerPatternConverter
- LoggerPatternConverterSuperglobal
Direct known subclasses
LoggerPatternConverterCookie, LoggerPatternConverterEnvironment, LoggerPatternConverterRequest, LoggerPatternConverterServer, LoggerPatternConverterSession
Abstract
Package: log4php\pattern
Version: $Revision: 1326626 $
Since: 2.3
See: http://php.net/manual/en/language.variables.superglobals.php
See: http://www.php.net/manual/en/ini.core.php#ini.variables-order
Located at pattern/LoggerPatternConverterSuperglobal.php
Package: log4php\pattern
Version: $Revision: 1326626 $
Since: 2.3
See: http://php.net/manual/en/language.variables.superglobals.php
See: http://www.php.net/manual/en/ini.core.php#ini.variables-order
Located at pattern/LoggerPatternConverterSuperglobal.php
public
|
#
activateOptions( )
Called in constructor. Converters which need to process the options can override this method. |
public
|
#
convert(
Converts the logging event to the desired format. Derived pattern converters must implement this method. |
__construct(),
format()
|
protected
mixed
|
$name |
|
#
Name of the superglobal variable, to be defined by subclasses. For example: "_SERVER" or "_ENV". |
protected
string
|
$value | '' |
$formattingInfo,
$next,
$option
|