Class LoggerPatternConverter

Description

LoggerPatternConverter is an abstract class that provides the formatting functionality that derived classes need.

Conversion specifiers in a conversion patterns are parsed to individual PatternConverters. Each of which is responsible for converting a logging event in a converter specific manner.

  • version: $Revision: 822445 $
  • abstract:
  • since: 0.3

Located in /helpers/LoggerPatternConverter.php (line 51)


	
			
Direct descendents
Variable Summary
Method Summary
LoggerPatternConverter __construct ([LoggerFormattingInfo $fi = null])
void convert (LoggerLoggingEvent $event)
void format (string &$sbuf, LoggerLoggingEvent $e)
void spacePad (string $sbuf, integer $length)
Variables
mixed $leftAlign = false (line 60)
  • access: public
mixed $max = 0x7FFFFFFF (line 59)
  • access: public
mixed $min = -1 (line 58)
  • access: public
LoggerPatternConverter $next = null (line 56)
  • var: next converter in converter chain
  • access: public
Methods
Constructor __construct (line 67)

Constructor

  • access: public
LoggerPatternConverter __construct ([LoggerFormattingInfo $fi = null])

Redefined in descendants as:
convert (line 81)

Derived pattern converters must override this method in order to convert conversion specifiers in the correct way.

  • access: public
void convert (LoggerLoggingEvent $event)

Redefined in descendants as:
format (line 89)

A template method for formatting in a converter specific way.

  • access: public
void format (string &$sbuf, LoggerLoggingEvent $e)

Redefined in descendants as:
spacePad (line 124)

Fast space padding method.

  • todo: reimplement using PHP string functions
  • access: public
void spacePad (string $sbuf, integer $length)
  • string $sbuf: string buffer
  • integer $length: pad length

Documentation generated on Fri, 27 Nov 2009 07:44:51 +0100 by phpDocumentor 1.4.3