You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -358,7 +355,7 @@ If needed, you may access the underlying Monolog instance in a two ways:
358
355
- Using `icLogger` command's method:
359
356
360
357
```php
361
-
class MyLoggableCommand extends Command
358
+
class ExampleCommand extends Command
362
359
{
363
360
use Loggable;
364
361
@@ -398,7 +395,7 @@ trait Loggable
398
395
If your command is overriding `initialize` method too, then you should call `initializeLogging` method by yourself:
399
396
400
397
```php
401
-
class MyLoggableCommand extends Command
398
+
class ExampleCommand extends Command
402
399
{
403
400
use Loggable;
404
401
@@ -421,7 +418,7 @@ If you're using some other cool `illuminated/console-%` packages, well, then you
421
418
For example, if you're trying to build loggable command, which is [protected against overlapping](https://github.com/dmitry-ivanov/laravel-console-mutex):
422
419
423
420
```php
424
-
class MyLoggableCommand extends Command
421
+
class ExampleCommand extends Command
425
422
{
426
423
use Loggable;
427
424
use WithoutOverlapping;
@@ -436,7 +433,7 @@ You'll get fatal error, the "traits conflict", because both of these traits are
436
433
But don't worry, solution is very simple. Override `initialize` method by yourself, and initialize traits in required order:
0 commit comments