Log handler that will append the record's channel to a fixed 'application prefix' given at construction time.
More...
|
| __construct ( $appprefix, $host, $port=514, $facility=LOG_USER, $level=Logger::DEBUG, $bubble=true) |
|
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.
- Since
- 1.32
- Note
- © 2019 Wikimedia Foundation and contributors
Definition at line 37 of file MwlogHandler.php.
◆ __construct()
MediaWiki\Logger\Monolog\MwlogHandler::__construct |
( |
| $appprefix, |
|
|
| $host, |
|
|
| $port = 514, |
|
|
| $facility = LOG_USER, |
|
|
| $level = Logger::DEBUG, |
|
|
| $bubble = true ) |
- Parameters
-
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.
◆ syslogHeader()
MediaWiki\Logger\Monolog\MwlogHandler::syslogHeader |
( |
| $severity, |
|
|
| $app ) |
|
protected |
◆ write()
MediaWiki\Logger\Monolog\MwlogHandler::write |
( |
array | $record | ) |
|
|
protected |
The documentation for this class was generated from the following file: