package
1.3.2
Repository: https://github.com/0xrawsec/golang-utils.git
Documentation: pkg.go.dev

# Functions

OpenSizeRotateLogFile opens a new log file for logging rotating according to its own size.
OpenTimeRotateLogFile opens a new TimeRotateLogFile drot controls the rotation delay and dgzip the time to wait before the latest file is GZIPed.

# Constants

DefaultRotationRate defines the default value for rotation refresh rate.
GB Gigabytes.
KB Kilobytes.
MB Megabytes.
TB Terabytes.

# Structs

BaseLogFile structure definition.
SizeRotateLogFile structure definition A SizeRotateLogFile is a GZIP compressed file which rotates automatically.
TimeRotateLogFile structure definition.

# Interfaces

LogFile interface.