Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomString32 ¶
24 bytes (192 bits) of entropy, base64 encoded
Types ¶
type ChanLogger ¶
type ChanLogger chan string
func (ChanLogger) Printf ¶
func (c ChanLogger) Printf(format string, v ...interface{}) error
type FileLogger ¶
type FileLogger struct {
// contains filtered or unexported fields
}
Logs into a file. Timestamps are in UTC.
func NewFileLogger ¶
func NewFileLogger(filepath string) (*FileLogger, error)
func (*FileLogger) Close ¶
func (l *FileLogger) Close() error
func (*FileLogger) Printf ¶
func (l *FileLogger) Printf(format string, v ...interface{}) error
log.Printf drops the returned error, we don't. In case of a write error, we reopen the file and try again.
Click to show internal directories.
Click to hide internal directories.