Skip to content

Commit af4debc

Browse files
authored
[MNG-8605] The log file should be appended to (#2137)
1 parent 6197545 commit af4debc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

impl/maven-logging/src/main/java/org/apache/maven/slf4j/SimpleLoggerConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ private static OutputChoice computeOutputChoice(String logFile, boolean cacheOut
231231
return new OutputChoice(cacheOutputStream ? OutputChoiceType.CACHED_SYS_OUT : OutputChoiceType.SYS_OUT);
232232
} else {
233233
try {
234-
FileOutputStream fos = new FileOutputStream(logFile);
234+
FileOutputStream fos = new FileOutputStream(logFile, true);
235235
PrintStream printStream = new PrintStream(fos);
236236
return new OutputChoice(printStream);
237237
} catch (FileNotFoundException e) {

0 commit comments

Comments
 (0)