Class LoggerLayoutSimple

Description

A simple layout.

Returns the log statement in a format consisting of the level, followed by " - " and then the message.

For example the following php and properties files



      would result in:

      INFO - Hello World!

      • version: $Revision: 1213283 $

      Located in /log4php/layouts/LoggerLayoutSimple.php (line 41)

      LoggerConfigurable
         |
         --LoggerLayout
            |
            --LoggerLayoutSimple
      Method Summary
      string format (LoggerLoggingEvent $event)
      Methods
      format (line 51)

      Returns the log statement in a format consisting of the

      level, followed by " - " and then the message. For example, INFO - "A message"

      • access: public
      string format (LoggerLoggingEvent $event)

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

      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 Thu, 16 Feb 2017 18:02:47 +0900 by phpDocumentor 1.4.4