-
Notifications
You must be signed in to change notification settings - Fork 71
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
7 changed files
with
103 additions
and
7 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
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,56 @@ | ||
<?php | ||
|
||
namespace EightPoints\Bundle\GuzzleBundle\Log; | ||
|
||
use Psr\Log\LoggerTrait; | ||
|
||
/** | ||
* Class DevNullLogger | ||
* | ||
* @author SuRiKmAn <[email protected]> | ||
* @version 5.0 | ||
* @since 2016-11 | ||
* @package EightPoints\Bundle\GuzzleBundle\Log | ||
*/ | ||
class DevNullLogger implements LoggerInterface | ||
{ | ||
use LoggerTrait; | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function log($level, $message, array $context = []) | ||
{ | ||
// do nothing!! | ||
} | ||
|
||
/** | ||
* Clear messages list | ||
* | ||
* @return void | ||
*/ | ||
public function clear() | ||
{ | ||
// do nothing!! | ||
} | ||
|
||
/** | ||
* Return if messages exist or not | ||
* | ||
* @return boolean | ||
*/ | ||
public function hasMessages() | ||
{ | ||
return false; | ||
} | ||
|
||
/** | ||
* Return log messages | ||
* | ||
* @return array | ||
*/ | ||
public function getMessages() | ||
{ | ||
return []; | ||
} | ||
} |
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,36 @@ | ||
<?php | ||
|
||
namespace EightPoints\Bundle\GuzzleBundle\Log; | ||
|
||
use Psr\Log; | ||
|
||
/** | ||
* Interface LoggerInterface | ||
* | ||
* @author SuRiKmAn <[email protected]> | ||
* @package EightPoints\Bundle\GuzzleBundle\Log | ||
*/ | ||
interface LoggerInterface extends Log\LoggerInterface | ||
{ | ||
|
||
/** | ||
* Clear messages list | ||
* | ||
* @return void | ||
*/ | ||
public function clear(); | ||
|
||
/** | ||
* Return if messages exist or not | ||
* | ||
* @return boolean | ||
*/ | ||
public function hasMessages(); | ||
|
||
/** | ||
* Return log messages | ||
* | ||
* @return array | ||
*/ | ||
public function getMessages(); | ||
} |
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