| 1 | <?php |
||
| 21 | class Stream extends AbstractLogger implements LoggerInterface |
||
| 22 | { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Holds the stream. |
||
| 26 | * @var resource |
||
| 27 | */ |
||
| 28 | protected $stream; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Constructor. |
||
| 32 | * |
||
| 33 | * @param resource|string $stream The stream to append to. |
||
| 34 | * @throws InvalidArgumentException If the stream cannot be created/opened. |
||
| 35 | */ |
||
| 36 | 180 | public function __construct($stream = 'php://stdout', $mode = 'a') |
|
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritDoc} |
||
| 53 | */ |
||
| 54 | 168 | public function write(LogEntry $log) |
|
| 63 | |||
| 64 | /** |
||
| 65 | * {@inheritDoc} |
||
| 66 | */ |
||
| 67 | 180 | public function close() |
|
| 73 | |||
| 74 | } |