Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4075108
ClientLogHandler.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
544 B
Referenced Files
None
Subscribers
None
ClientLogHandler.php
View Options
<?php
namespace
Shellbox
;
use
Monolog\Handler\AbstractHandler
;
class
ClientLogHandler
extends
AbstractHandler
{
/** @var array */
private
$records
=
[];
public
function
handle
(
array
$record
):
bool
{
$this
->
records
[]
=
[
'level'
=>
$record
[
'level'
],
'message'
=>
$record
[
'message'
],
'context'
=>
$record
[
'context'
]
];
return
false
;
}
/**
* Remove and return the accumulated log entries
*
* @return array
*/
public
function
flush
()
{
$records
=
$this
->
records
;
$this
->
records
=
[];
return
$records
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 17 2026, 17:39 (10 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
86/b0/5e0c76a646869d3a16e5c43740e4
Default Alt Text
ClientLogHandler.php (544 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment