@@ -37,7 +37,7 @@ public function command(Host $host, string $type, string $command): void
3737 if ($ this ->output ->isVerbose ()) {
3838 $ this ->output ->writeln ("[ $ host] <fg=green;options=bold> $ type</> $ command " );
3939 }
40- $ this ->fileLog ->log ("[ {$ host ->getAlias ()}] $ type: $ command " );
40+ $ this ->fileLog ->writeln ("[ {$ host ->getAlias ()}] $ type: $ command " );
4141 }
4242
4343 public function print (Host $ host , string $ buffer , bool $ force = false ): void
@@ -54,7 +54,7 @@ public function print(Host $host, string $buffer, bool $force = false): void
5454 if (empty ($ line )) {
5555 return ;
5656 }
57- $ this ->fileLog ->log ("[ {$ host ->getAlias ()}] $ line " );
57+ $ this ->fileLog ->writeln ("[ {$ host ->getAlias ()}] $ line " );
5858 }
5959 }
6060
@@ -70,7 +70,7 @@ public function startTask(Task $task): void
7070 } else {
7171 $ this ->output ->writeln ("<fg=cyan;options=bold>task</> {$ task ->getName ()}" );
7272 }
73- $ this ->fileLog ->log ("# task {$ task ->getName ()}" );
73+ $ this ->fileLog ->writeln ("# task {$ task ->getName ()}" );
7474 }
7575
7676 public function endTask (Task $ task ): void
@@ -95,7 +95,7 @@ public function endTask(Task $task): void
9595 $ this ->output ->writeln ("<fg=yellow;options=bold>done</> {$ task ->getName ()} $ taskTime " );
9696 }
9797
98- $ this ->fileLog ->log ("# done {$ task ->getName ()} $ taskTime " );
98+ $ this ->fileLog ->writeln ("# done {$ task ->getName ()} $ taskTime " );
9999 }
100100
101101 public function endOnHost (Host $ host ): void
@@ -104,7 +104,7 @@ public function endOnHost(Host $host): void
104104 $ this ->output ->writeln ("<fg=yellow;options=bold>done</> on $ host " );
105105 }
106106
107- $ this ->fileLog ->log ("# done on {$ host ->getAlias ()}" );
107+ $ this ->fileLog ->writeln ("# done on {$ host ->getAlias ()}" );
108108 }
109109
110110 public function renderException (Throwable $ exception , Host $ host ): void
@@ -157,7 +157,7 @@ public function renderException(Throwable $exception, Host $host): void
157157 $ this ->output ->write ($ message );
158158 }
159159
160- $ this ->fileLog ->log ($ exception ->__toString ());
160+ $ this ->fileLog ->writeln ($ exception ->__toString ());
161161
162162 if ($ exception ->getPrevious ()) {
163163 $ this ->renderException ($ exception ->getPrevious (), $ host );
0 commit comments