MediaWiki REL1_33
|
Log handler that will append the record's channel to a fixed 'application prefix' given at construction time. More...
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) | |
Private Member Functions | |
splitMessageIntoLines ( $message) | |
Private Attributes | |
$appprefix | |
$hostname | |
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.
References MediaWiki\Logger\Monolog\MwlogHandler\$appprefix, and and().
|
private |
Definition at line 84 of file MwlogHandler.php.
|
protected |
Definition at line 72 of file MwlogHandler.php.
References and().
|
protected |
Definition at line 92 of file MwlogHandler.php.
|
private |
Definition at line 42 of file MwlogHandler.php.
Referenced by MediaWiki\Logger\Monolog\MwlogHandler\__construct().
|
private |
Definition at line 47 of file MwlogHandler.php.