Skip to content

Commit

Permalink
fixed default values in constructor (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mararok authored Oct 5, 2018
1 parent fc897ba commit 992f8b1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/SAREhub/Commons/Logger/StreamLoggerFactoryProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
class StreamLoggerFactoryProvider extends InvokableProvider
{
const DEFAULT_LOGGING_LEVEL = "DEBUG";

const DEFAULT_STREAM = 'php://stdout';

/**
* @var string
*/
Expand All @@ -25,9 +25,14 @@ class StreamLoggerFactoryProvider extends InvokableProvider
*/
private $formatter;

/**
* @var resource|string
*/
private $stream;

public function __construct(
string $level = self::DEFAULT_LOGGING_LEVEL,
?FormatterInterface $formatter,
?FormatterInterface $formatter = null,
$stream = self::DEFAULT_STREAM
)
{
Expand Down

0 comments on commit 992f8b1

Please sign in to comment.