Skip to content

Commit c6f50db

Browse files
committed
Append \n in file log
1 parent 74036e4 commit c6f50db

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/Logger/Handler/FileHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ public function __construct(string $filePath)
2424

2525
public function log(string $message): void
2626
{
27-
file_put_contents($this->filePath, $message, FILE_APPEND);
27+
file_put_contents($this->filePath, $message . "\n", FILE_APPEND);
2828
}
2929
}

src/Logger/Logger.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ public function endOnHost(Host $host): void
103103
if ($this->output->isVeryVerbose()) {
104104
$this->output->writeln("<fg=yellow;options=bold>done</> on $host");
105105
}
106+
107+
$this->fileLog->log("# done on {$host->getAlias()}");
106108
}
107109

108110
public function renderException(Throwable $exception, Host $host): void

0 commit comments

Comments
 (0)