DEV Community

Time based log file rotation with zap

Dhwaneet Bhatt on May 19, 2020

zap is one of the nicely maintained, well-written and nicely performing open source logging libraries in Go. Unfortunately, not all apps in our org...
Collapse
 
simme profile image
Simme

Hi, and welcome to dev.to! 👋🏼

To keep the user experience pleasant and allowing users to browse interesting content without having to leave the site, we encourage authors to post their content here rather than to link to external sources.

I understand, though, that you might want the posts to originate from your own blog. I feel the same way, which is why I use the canonical URL property on my posts and post them in their entirety. You can actually even set up your dev.to account to sync posts from an external RSS feed.

See dev.to/settings/publishing-from-rss for more info. 👍🏼

Best regards,
Simme

Collapse
 
dhwaneetbhatt profile image
Dhwaneet Bhatt

Thanks for the detailed explanation Simon.

Collapse
 
hariprasadraja profile image
Hariprasad

It's a good one but i won't prefer that. If you move your logs to any database for analytical purpose is much appreciated than this.

Collapse
 
dhwaneetbhatt profile image
Dhwaneet Bhatt • Edited

We are preparing our log stack, but it will take time. We are still early stages of a startup and for now, we use files for debugging and finding out errors.