## Class LoggerLayoutSerialized

Description

Layout which formats the events using PHP's serialize() function.

Available options:

- locationInfo - If set to true, the event's location information will also be serialized (slow, defaults to false).

- version: $Revision: 1334369 $
- since: 2.2

Located in /log4php/layouts/LoggerLayoutSerialized.php (line 33)

    LoggerConfigurable
       |
       --LoggerLayout
          |
          --LoggerLayoutSerialized

Variable Summary
mixed $locationInfo
Method Summary
void format (LoggerLoggingEvent $event)
void getLocationInfo ()
void setLocationInfo ( $value)
Variables
mixed $locationInfo = false (line 36)

Whether to include the event's location information (slow).

- access: protected

Methods
format (line 48)

- access: public

void format (LoggerLoggingEvent $event)

- LoggerLoggingEvent $event

Redefinition of:

LoggerLayout::format()
  Override this method to create your own layout format.

getLocationInfo (line 44)

Returns the location information flag.

- access: public

void getLocationInfo ()
setLocationInfo (line 39)

Sets the location information flag.

- access: public

void setLocationInfo ( $value)

- $value

#### Inherited Methods

Inherited From LoggerLayout

> LoggerLayout::activateOptions()
> LoggerLayout::format()
> LoggerLayout::getContentType()
> LoggerLayout::getFooter()
> LoggerLayout::getHeader()
> LoggerLayout::warn()

Inherited From LoggerConfigurable

> LoggerConfigurable::setBoolean()
> LoggerConfigurable::setFileSize()
> LoggerConfigurable::setInteger()
> LoggerConfigurable::setLevel()
> LoggerConfigurable::setNumeric()
> LoggerConfigurable::setPositiveInteger()
> LoggerConfigurable::setString()
> LoggerConfigurable::warn()

Documentation generated on Wed, 12 Nov 2025 18:40:34 +0900 by phpDocumentor 1.4.4