## Class LoggerAppenderEcho

Description

LoggerAppenderEcho uses the PHP echo() function to output events.

This appender uses a layout.

## Configurable parameters: ##

- **htmlLineBreaks** - If set to true, a
  element will be inserted before each line break in the logged message. Default is false.

- version: $Revision: 1337820 $
- link: Appender documentation
- license: Apache License, Version 2.0

Located in /log4php/appenders/LoggerAppenderEcho.php (line 35)

    LoggerConfigurable
       |
       --LoggerAppender
          |
          --LoggerAppenderEcho

Variable Summary
boolean $firstAppend
mixed $htmlLineBreaks
Method Summary
void append (LoggerLoggingEvent $event)
void close ()
boolean getHtmlLineBreaks ()
void setHtmlLineBreaks (boolean $value)
Variables
boolean $firstAppend = true (line 40)

Used to mark first append. Set to false after first append.

- access: protected

mixed $htmlLineBreaks = false (line 46)

If set to true, a
element will be inserted before each line

break in the logged message. Default value is false. @var boolean

- access: protected

#### Inherited Variables

Inherited from LoggerAppender

> LoggerAppender::$closed
> LoggerAppender::$filter
> LoggerAppender::$layout
> LoggerAppender::$name
> LoggerAppender::$requiresLayout
> LoggerAppender::$threshold

Methods
append (line 57)

- access: public

void append (LoggerLoggingEvent $event)

- LoggerLoggingEvent $event

Redefinition of:

LoggerAppender::append()
  Forwards the logging event to the destination.

close (line 48)

- access: public

void close ()

Redefinition of:

LoggerAppender::close()
  Releases any resources allocated by the appender.

getHtmlLineBreaks (line 84)

Returns the 'htmlLineBreaks' parameter.

- access: public

boolean getHtmlLineBreaks ()
setHtmlLineBreaks (line 76)

Sets the 'htmlLineBreaks' parameter.

- access: public

void setHtmlLineBreaks (boolean $value)

- boolean $value

#### Inherited Methods

Inherited From LoggerAppender

> LoggerAppender::__construct()
> LoggerAppender::activateOptions()
> LoggerAppender::addFilter()
> LoggerAppender::append()
> LoggerAppender::clearFilters()
> LoggerAppender::close()
> LoggerAppender::doAppend()
> LoggerAppender::getDefaultLayout()
> LoggerAppender::getFilter()
> LoggerAppender::getFirstFilter()
> LoggerAppender::getLayout()
> LoggerAppender::getName()
> LoggerAppender::getThreshold()
> LoggerAppender::isAsSevereAsThreshold()
> LoggerAppender::requiresLayout()
> LoggerAppender::setLayout()
> LoggerAppender::setName()
> LoggerAppender::setThreshold()
> LoggerAppender::warn()
> LoggerAppender::__destruct()

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:31 +0900 by phpDocumentor 1.4.4