Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Deduper ¶
type Deduper struct {
// contains filtered or unexported fields
}
Deduper implement log.Logger, dedupes log lines.
type JSONFileLogger ¶
type JSONFileLogger struct {
// contains filtered or unexported fields
}
JSONFileLogger represents a logger that writes JSON to a file.
func NewJSONFileLogger ¶
func NewJSONFileLogger(s string) (*JSONFileLogger, error)
NewJSONFileLogger returns a new JSONFileLogger.
func (*JSONFileLogger) Close ¶
func (l *JSONFileLogger) Close() error
Close closes the underlying file.
func (*JSONFileLogger) Log ¶
func (l *JSONFileLogger) Log(i ...interface{}) error
Log calls the Log function of the underlying logger.
Click to show internal directories.
Click to hide internal directories.