mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
19 lines
488 B
PHP
19 lines
488 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Stripe\Util;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* A very basic implementation of LoggerInterface that has just enough
|
||
|
|
* functionality that it can be the default for this library.
|
||
|
|
*/
|
||
|
|
class DefaultLogger implements LoggerInterface
|
||
|
|
{
|
||
|
|
public function error($message, array $context = [])
|
||
|
|
{
|
||
|
|
if (count($context) > 0) {
|
||
|
|
throw new \Exception('DefaultLogger does not currently implement context. Please implement if you need it.');
|
||
|
|
}
|
||
|
|
error_log($message);
|
||
|
|
}
|
||
|
|
}
|