-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
124 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
namespace Corpus\Loggers\Interfaces; | ||
|
||
use Psr\Log\LoggerInterface; | ||
|
||
interface LoggerWithContextInterface extends LoggerInterface, WithContextInterface { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
namespace Corpus\Loggers\Interfaces; | ||
|
||
use Psr\Log\LoggerInterface; | ||
|
||
interface MultiLoggerInterface extends LoggerInterface, WithAdditionalLoggersInterface { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace Corpus\Loggers\Interfaces; | ||
|
||
use Psr\Log\LoggerInterface; | ||
|
||
interface WithAdditionalLoggersInterface { | ||
|
||
/** | ||
* withAdditionalLoggers returns a new instance with the given loggers | ||
* added to the list of loggers to delegate to. | ||
*/ | ||
public function withAdditionalLoggers( LoggerInterface ...$loggers ) : self; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace Corpus\Loggers\Interfaces; | ||
|
||
interface WithContextInterface { | ||
|
||
/** | ||
* Returns a new instance with the given context | ||
* replacing the existing context. | ||
*/ | ||
public function withContext( array $context ) : self; | ||
|
||
/** | ||
* Returns a new instance with the given context | ||
* added to the existing context. | ||
*/ | ||
public function withAddedContext( array $context ) : self; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters