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

Rotate log #53

Closed
Milerius opened this issue Aug 10, 2019 · 1 comment
Closed

Rotate log #53

Milerius opened this issue Aug 10, 2019 · 1 comment
Assignees

Comments

@Milerius
Copy link

Hey, there is a way to rotate log every 24hours and delete or move old files ?

@kpango
Copy link
Owner

kpango commented Aug 12, 2019

@Milerius Hi, we provide custom writer functionallity (AddWriter, SetWriter, AddLevelWriter, SetLevelWriter) you can do anything about io writing, below is my example code that can solve your problem. please check it

https://github.com/kpango/glg/blob/master/example/main.go#L27-L77
https://github.com/kpango/glg/blob/master/example/main.go#L89
https://github.com/kpango/glg/blob/master/example/main.go#L114

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