Is there any logging library for go that can rotate log files daily / hourly?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • lumberjack

    lumberjack is a log rolling package for Go

  • Lumberjack supports rotation by file size only. https://github.com/natefinch/lumberjack/issues/54 Maybe I should try something like logrotate?

  • dailyrotate

    Discontinued Go library for a file that rotates daily

  • Have a look at https://github.com/kjk/dailyrotate. Although daily log rotation can be done easily yourself using filename + date and some checks.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts