# 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

Methods summary
`public` | # `activateOptions( )` Called in constructor. Converters which need to process the options can override this method. Called in constructor. Converters which need to process the options can override this method. #### Overrides `LoggerPatternConverter::activateOptions()`
`public` | # `convert( `LoggerLoggingEvent` $event )` Converts the logging event to the desired format. Derived pattern converters must implement this method. Converts the logging event to the desired format. Derived pattern converters must implement this method. #### Parameters $event ``LoggerLoggingEvent`` $event

Methods inherited from LoggerPatternConverter
`__construct(), format()`

Properties summary
`protected mixed` | $name | `` | # Name of the superglobal variable, to be defined by subclasses. For example: "_SERVER" or "_ENV". Name of the superglobal variable, to be defined by subclasses. For example: "_SERVER" or "_ENV".
`protected string` | $value | `''` | #

Properties inherited from LoggerPatternConverter
`$formattingInfo, $next, $option`