Skip to content

Commit

Permalink
zio#372 append in log writer
Browse files Browse the repository at this point in the history
  • Loading branch information
pshemass committed Nov 19, 2021
1 parent b3ceeda commit 152a8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/shared/src/main/scala/zio/logging/LogWriter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ private[logging] class LogWriter(
bufferedIOSize: Option[Int]
) extends Writer {
private val writer: Writer = {
val output = new OutputStreamWriter(new FileOutputStream(destination.toFile), charset)
val output = new OutputStreamWriter(new FileOutputStream(destination.toFile, true), charset)
bufferedIOSize match {
case Some(bufferSize) => new BufferedWriter(output, bufferSize)
case None => output
Expand Down

0 comments on commit 152a8fc

Please sign in to comment.