File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 44
55use Illuminate \Console \Scheduling \Schedule ;
66use Illuminate \Foundation \Console \Kernel as ConsoleKernel ;
7+ use Illuminate \Support \Facades \Log ;
78
89class Kernel extends ConsoleKernel
910{
@@ -16,9 +17,9 @@ protected function schedule(Schedule $schedule)
1617 {
1718 $ schedule ->command ('test:command ' )->withoutOverlapping ();
1819 $ schedule ->command ('test:command2 ' )->before (function () {
19- logger ()-> info ('log after ' );
20+ Log:: info ('log after ' );
2021 })->after (function () {
21- logger ()-> warning ('log before ' );
22+ Log:: warning ('log before ' );
2223 });
2324 }
2425}
Original file line number Diff line number Diff line change 33namespace Tests \Support ;
44
55use Illuminate \Console \Command ;
6+ use Illuminate \Support \Facades \Log ;
67
78class TestCommand extends Command
89{
@@ -11,6 +12,6 @@ class TestCommand extends Command
1112
1213 public function handle ()
1314 {
14- logger ('did something testy ' );
15+ Log:: debug ('did something testy ' );
1516 }
1617}
Original file line number Diff line number Diff line change 33namespace Tests \Support ;
44
55use Illuminate \Console \Command ;
6+ use Illuminate \Support \Facades \Log ;
67
78class TestCommand2 extends Command
89{
@@ -12,6 +13,6 @@ class TestCommand2 extends Command
1213
1314 public function handle ()
1415 {
15- logger ('did something testy ' );
16+ Log:: debug ('did something testy ' );
1617 }
1718}
You can’t perform that action at this time.
0 commit comments