Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NilLogLogger = log.New(io.Discard, "", 0) NilLogger nilLogger )
Functions ¶
func RotateShared ¶ added in v0.3.2
func RotateShared() error
RotateShared calls Rotate each shared rotaters.
Types ¶
type NopRotater ¶ added in v0.3.2
NopRotater is a Writer with no-op Rotate and Close methods.
func (*NopRotater) Close ¶ added in v0.3.2
func (*NopRotater) Close() error
Close does nothing, returns nil.
func (*NopRotater) Rotate ¶ added in v0.3.2
func (*NopRotater) Rotate() error
Rotate does nothing, returns nil.
type Rotater ¶ added in v0.1.0
type Rotater interface {
io.WriteCloser
Rotate() error
}
Rotater is the interface that groups the Rotate and basic Write, Close methods.
func NewRotater ¶ added in v0.3.2
NewRotater creates a new rotater.
Click to show internal directories.
Click to hide internal directories.