Skip to content

Allow rollLogFiles to be called from users of RollingFileAppender - #103

Merged
SergiusTheBest merged 1 commit into
SergiusTheBest:masterfrom
andreasjhkarlsson:Public-File-Rolling
Jul 17, 2018
Merged

Allow rollLogFiles to be called from users of RollingFileAppender#103
SergiusTheBest merged 1 commit into
SergiusTheBest:masterfrom
andreasjhkarlsson:Public-File-Rolling

Conversation

@andreasjhkarlsson

Copy link
Copy Markdown

We had a user case where we wanted to have a clean log file on startup while keeping the previous log file. The straightforward way is to force an initial roll of the file, but the rollLogFiles is private in RollingFileAppender.

Fortunetely, simply changing it to be public and changing the m_firstWrite flag seems to work fine.

@SergiusTheBest SergiusTheBest added this to the 1.1.5 milestone Jul 17, 2018
@SergiusTheBest
SergiusTheBest merged commit 4070c3d into SergiusTheBest:master Jul 17, 2018
@SergiusTheBest

Copy link
Copy Markdown
Owner

Looks good. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants