Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a log file only when needed instead of on initialization? #62

Closed
osa1 opened this issue Aug 28, 2020 · 1 comment
Closed

Create a log file only when needed instead of on initialization? #62

osa1 opened this issue Aug 28, 2020 · 1 comment
Labels

Comments

@osa1
Copy link
Contributor

osa1 commented Aug 28, 2020

Currently when using a file target flexi_logger creates the log file on initialization. My app doesn't print a lot of logs by default so that means an empty file is created for every run. Would it be possible to at least add an option to create the file only when needed? (i.e. the first time a log line is printed)

@emabee
Copy link
Owner

emabee commented Sep 4, 2020

Makes sense to me! I'll pick this up on the weekend (hopefully...)

@emabee emabee closed this as completed in 2dd2fee Sep 19, 2020
@emabee emabee added the bug label Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants