Serilog.Sinks.Postgresql.Alternative icon indicating copy to clipboard operation
Serilog.Sinks.Postgresql.Alternative copied to clipboard

Deleting logs older than

Open JustSxm opened this issue 2 years ago • 6 comments

Hello,

When logging with Serilog using files it is possible to retain only a number of files if I'm not mistaken. Is it possible to do something similar with this sink by only keeping for example, the last 24hours only? Or do I need to make something who delete logs every day? Thanks

JustSxm avatar Apr 14 '23 13:04 JustSxm

why is this closed? i cannot see any option for this.

MichalNemec avatar Jan 09 '24 23:01 MichalNemec

We decided to opt for another option, so I just closed the issue as it doesnt seems as serilog had this as a goal

JustSxm avatar Jan 10 '24 00:01 JustSxm

why is this closed? i cannot see any option for this.

There is none yet, I honestly missed the issue by that time...

SeppPenner avatar Jan 10 '24 13:01 SeppPenner

We decided to opt for another option, so I just closed the issue as it doesnt seems as serilog had this as a goal

Not Serilog, I just missed it. Still, this is a good idea if you ask me. I'm trying to implement this soon...

SeppPenner avatar Jan 10 '24 13:01 SeppPenner

Hello, is there any update for this?

MichalNemec avatar Mar 25 '24 13:03 MichalNemec

Sorry, no updates yet. I try to check this again soon.

SeppPenner avatar Mar 26 '24 14:03 SeppPenner