1
0
mirror of https://gitlab.com/openlp/website.git synced 2024-12-22 21:12:50 +00:00
website/files/stripe/lib/Util/DefaultLogger.php

19 lines
492 B
PHP
Raw Normal View History

<?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 = array())
{
if (count($context) > 0) {
throw new Exception('DefaultLogger does not currently implement context. Please implement if you need it.');
}
error_log($message);
}
}