Skip to content

refactor: rolling file appender to file appender#170

Merged
tisonkun merged 4 commits into
mainfrom
file-appender
Sep 26, 2025
Merged

refactor: rolling file appender to file appender#170
tisonkun merged 4 commits into
mainfrom
file-appender

Conversation

@tisonkun
Copy link
Copy Markdown
Contributor

@tisonkun tisonkun commented Sep 26, 2025

This closes #167

  • SingleFile appender is removed. You can replace it with append::File.
  • RollingFile is now File and provided by default.
  • File appender now requires filename when constructing.
  • File's filename_prefix is now renamed to mandatory filename.
  • File's max_log_files now takes NonZeroUsize.
  • File's rollover strategy methods are changed:
    • max_file_size -> rollover_size
    • rotation -> rollover_minutely, rollover_hourly, rollover_daily
    • By default, no rollover is performed.

Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
@tisonkun tisonkun changed the title File appender refactor: rolling file appender to file appender Sep 26, 2025
Signed-off-by: tison <wander4096@gmail.com>
@tisonkun tisonkun merged commit 2eb5ce9 into main Sep 26, 2025
9 checks passed
@tisonkun tisonkun deleted the file-appender branch September 26, 2025 04:15
@tisonkun
Copy link
Copy Markdown
Contributor Author

tisonkun commented Sep 26, 2025

cc @nine9ths FYI

cc @bearomorphism I took over this issue since I'd cut a release recently.

@bearomorphism
Copy link
Copy Markdown

I'm also a little busy lately so I haven't started working on this issue
No problem

@tisonkun
Copy link
Copy Markdown
Contributor Author

tisonkun commented Oct 6, 2025

cc @nine9ths @zuston Logforth 0.28.0 is now released.

Several interfaces has been changed but all should be documented in the CHANGELOG.md.

You may try it out and I'd expect one more breaking version to refine all the core APIs (e.g., LevelFilters).

@zuston
Copy link
Copy Markdown
Contributor

zuston commented Oct 9, 2025

cc @nine9ths @zuston Logforth 0.28.0 is now released.

Several interfaces has been changed but all should be documented in the CHANGELOG.md.

You may try it out and I'd expect one more breaking version to refine all the core APIs (e.g., LevelFilters).

got it. thanks for your mention

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename RollingFile to File in append

3 participants