MediaWiki  1.30.2
MediaWiki\Logger\Monolog\LegacyFormatter Class Reference

Log message formatter that mimics the legacy log message formatting of wfDebug, wfDebugLog, wfLogDBError and 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 wfErrorLog global functions by delegating the formatting to \MediaWiki\Logger\LegacyLogger.

Since
1.25
Note
© 2013 Wikimedia Foundation and contributors
See also
\MediaWiki\Logger\LegacyLogger

Definition at line 35 of file LegacyFormatter.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 37 of file LegacyFormatter.php.

Member Function Documentation

◆ format()

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

Definition at line 41 of file LegacyFormatter.php.

References MediaWiki\Logger\LegacyLogger\format(), and format.


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