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

How to create daily and rotating sink for the same log file #2818

Open
alccetinkaya opened this issue Jul 14, 2023 · 1 comment
Open

How to create daily and rotating sink for the same log file #2818

alccetinkaya opened this issue Jul 14, 2023 · 1 comment

Comments

@alccetinkaya
Copy link

Hi,
I want to create a logger that can generate log file daily and rotate the generated file based on file size and number. For example;

log_2023-07-14.txt
log_2023-07-14.1..txt
log_2023-07-14.2.txt

I've tried multi sink functionality but it created two different log files as below.

log_2023-07-14.txt
log.txt
log.1.txt
log.2.txt

Is it possible to create a logger like in the example?
Thanks

@tt4g
Copy link
Contributor

tt4g commented Jul 14, 2023

Duplicate #2702

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

No branches or pull requests

2 participants