Ask Your Question
0

Does Logback generate a file that is empty each time the application begins?

asked 2021-12-03 11:00:00 +0000

pufferfish gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-11-28 16:00:00 +0000

ladyg gravatar image

No, Logback does not generate an empty file each time the application begins. Logback will append log entries to the existing log file, and if the file does not exist, it will create a new one. However, it is possible to configure Logback to overwrite the existing log file each time the application starts by setting the append property to false in the configuration file.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-12-03 11:00:00 +0000

Seen: 21 times

Last updated: Nov 28 '22