'Using slf4J log, data is appending but I want to overwrite the data due to file size issue

Using slf4J log, data is appending in log file but I want to overwrite the data due to file size issue. What can be done to resolve this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source