blob: 93c97bad8f74ea96b95f55964f49788d6ea09f09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
namespace Asko\Loggr\Drivers;
use Asko\Loggr\Driver;
class OutputDriver implements Driver
{
/**
* Writes the provided serialized message to the standard output stream.
*
* @param string $serializedMessage The message to be logged, in a serialized format.
* @return void
*/
public function log(string $serializedMessage): void
{
file_put_contents('php://output', $serializedMessage);
}
}
|