MediaWiki REL1_40
|
Log handler that will append the record's channel to a fixed 'application prefix' given at construction time. More...
Inherits SyslogUdpHandler.
Public Member Functions | |
__construct ( $appprefix, $host, $port=514, $facility=LOG_USER, $level=Logger::DEBUG, $bubble=true) | |
Protected Member Functions | |
syslogHeader ( $severity, $app) | |
write (array $record) | |
Log handler that will append the record's channel to a fixed 'application prefix' given at construction time.
The use case for this handler is to deprecate udp2log with a localhost syslog endpoint. The application name is then used to reconstruct the message's channel.
Definition at line 37 of file MwlogHandler.php.
MediaWiki\Logger\Monolog\MwlogHandler::__construct | ( | $appprefix, | |
$host, | |||
$port = 514, | |||
$facility = LOG_USER, | |||
$level = Logger::DEBUG, | |||
$bubble = true ) |
string | $appprefix | Application prefix to use, channel will be appended. |
string | $host | Syslog host |
int | $port | Syslog port |
int | $facility | Syslog message facility |
int | $level | The minimum logging level at which this handler will be triggered |
bool | $bubble | Whether the messages that are handled can bubble up the stack or not |
Definition at line 59 of file MwlogHandler.php.
|
protected |
Definition at line 72 of file MwlogHandler.php.
|
protected |
Definition at line 92 of file MwlogHandler.php.