MediaWiki  1.34.0
MediaWiki\Logger\Monolog\LegacyFormatter Class Reference

Log message formatter that mimics the legacy log message formatting of wfDebug, wfDebugLog, wfLogDBError and the former wfErrorLog global functions by delegating the formatting to \MediaWiki\Logger\LegacyLogger. More...

Inheritance diagram for MediaWiki\Logger\Monolog\LegacyFormatter:
Collaboration diagram for MediaWiki\Logger\Monolog\LegacyFormatter:

Public Member Functions

 __construct ()
 
 format (array $record)
 

Detailed Description

Log message formatter that mimics the legacy log message formatting of wfDebug, wfDebugLog, wfLogDBError and the former wfErrorLog global functions by delegating the formatting to \MediaWiki\Logger\LegacyLogger.

Deprecated:
since 1.32
Since
1.25
Note
© 2013 Wikimedia Foundation and contributors
See also
\MediaWiki\Logger\LegacyLogger

Definition at line 36 of file LegacyFormatter.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Logger\Monolog\LegacyFormatter::__construct ( )

Definition at line 38 of file LegacyFormatter.php.

Member Function Documentation

◆ format()

MediaWiki\Logger\Monolog\LegacyFormatter::format ( array  $record)

Definition at line 42 of file LegacyFormatter.php.

References MediaWiki\Logger\LegacyLogger\format().


The documentation for this class was generated from the following file: