Page MenuHomeWickedGov Phorge

ClientLogHandler.php
No OneTemporary

Size
544 B
Referenced Files
None
Subscribers
None

ClientLogHandler.php

<?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

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)

Event Timeline