Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5956532
CeeFormatter.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
580 B
Referenced Files
None
Subscribers
None
CeeFormatter.php
View Options
<?php
namespace
MediaWiki\Logger\Monolog
;
/**
* Prefixed version of LogstashFormatter that adds a "cee cookie" for Rsyslog.
*
* The prefix lets Ryslog differentiate between JSON and non-JSON messages.
*
* See also: https://www.rsyslog.com/doc/v8-stable/configuration/modules/mmjsonparse.html
*
* @since 1.33
* @ingroup Debug
*/
class
CeeFormatter
extends
LogstashFormatter
{
/**
* Format records with a cee cookie
* @param array $record
* @return string
*/
public
function
format
(
array
$record
):
string
{
return
"@cee: "
.
parent
::
format
(
$record
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 04:29 (3 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
65/06/28ef75fb105adcb59b11a2055c36
Default Alt Text
CeeFormatter.php (580 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment