gajus/roarr

Rotating files?

normancarcamo opened this issue · 4 comments

How can I rotate files with roarr?

I couldn't find infomation about this in the docs on Github, do you recommend something to workaround this?

Rotating files is something useful too and that's the only thing that I couldn't find here, the rest is a good logger as far I can see.

thanks.

gajus commented

Rotating logs is not a responsibility of an application layer logger.

I suggest taking a look at https://github.com/logrotate/logrotate.

Thanks for the note of the layer, I didn't realized it, as well thanks for the repo I'm looking at it now :)

@gajus Sorry by bothering you again but I just want to know the following:

How can I save the logs or are they just intended to be printed in the console as a debugger?

Or it isn't neither a responsibility of a logger?

If not then I think that maybe you're right saying that it isn't as well, but in some cases this is handy.

I answer this to close it, I know now the reason and make it sense when it's referred to the single thread :(