wip
This commit is contained in:
parent
e8e79dfef3
commit
6ef6718af1
|
|
@ -3,6 +3,7 @@
|
||||||
namespace BeyondCode\LaravelWebSockets\Server\Logger;
|
namespace BeyondCode\LaravelWebSockets\Server\Logger;
|
||||||
|
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
|
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
|
||||||
|
|
||||||
class Logger
|
class Logger
|
||||||
{
|
{
|
||||||
|
|
@ -46,6 +47,12 @@ class Logger
|
||||||
|
|
||||||
protected function warn(string $message)
|
protected function warn(string $message)
|
||||||
{
|
{
|
||||||
|
if (! $this->consoleOutput->getFormatter()->hasStyle('warning')) {
|
||||||
|
$style = new OutputFormatterStyle('yellow');
|
||||||
|
|
||||||
|
$this->consoleOutput->getFormatter()->setStyle('warning', $style);
|
||||||
|
}
|
||||||
|
|
||||||
$this->line($message, 'warning');
|
$this->line($message, 'warning');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue