Documentation ¶
Index ¶
Constants ¶
View Source
const ( MonthlyRolling RollingFormat = "200601" DailyRolling = "20060102" HourlyRolling = "2006010215" MinutelyRolling = "200601021504" SecondlyRolling = "20060102150405" )
Variables ¶
View Source
var ErrBuffer = errors.New("buffer exceeds the limit")
View Source
var ErrClosedRollingFile = errors.New("rolling file is closed")
Functions ¶
This section is empty.
Types ¶
type RollingFile ¶
type RollingFile struct {
// contains filtered or unexported fields
}
func NewRollingFile ¶
func NewRollingFile(basePath string, rolling RollingFormat) (*RollingFile, error)
func (*RollingFile) Close ¶
func (r *RollingFile) Close() error
func (*RollingFile) SetRolling ¶
func (r *RollingFile) SetRolling(fmt RollingFormat)
func (*RollingFile) Sync ¶
func (r *RollingFile) Sync() error
type RollingFormat ¶
type RollingFormat string
Click to show internal directories.
Click to hide internal directories.