Documentation ¶
Overview ¶
Package file provides logging to file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Appender ¶
type Appender struct {
// contains filtered or unexported fields
}
Appender is a file appender with rolling policy.
func NewAppender ¶
NewAppender allocates and returns a new Appender. Calling Start is only needed for catching errors.
func (*Appender) Append ¶
func (a *Appender) Append(event *gol.LoggingEvent)
Append encodes the given logging event to file.
func (*Appender) SetRollingPolicy ¶
func (a *Appender) SetRollingPolicy(policy rotation.RollingPolicy)
SetRollingPolicy changes the rolling policy of this appender.
func (*Appender) SetTriggeringPolicy ¶
func (a *Appender) SetTriggeringPolicy(policy rotation.TriggeringPolicy)
SetTriggeringPolicy changes the triggering policy of this appender.
Click to show internal directories.
Click to hide internal directories.