blob: ca26f536018f96fdd1620dd2bb0597b364debdf3 (
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 . PHP_EOL);
}
}
|