Versions in this module Expand all Collapse all v0 v0.6.3 Apr 7, 2019 v0.6.2 Apr 7, 2019 Changes in this version + type BackendSysLogWriter struct — darwin/amd64, js/wasm, linux/amd64 + func NewBackendSysLogWriter(network, raddr string, priority syslog.Priority, tag string) *BackendSysLogWriter + func (bs *BackendSysLogWriter) Close() error + func (bs *BackendSysLogWriter) Write(b []byte) (int, error) + type BackgroundWriteCloser struct + func NewBackgroundWriteCloser(writeCloser io.WriteCloser) *BackgroundWriteCloser + func (bw *BackgroundWriteCloser) Close() error + func (bw *BackgroundWriteCloser) Write(p []byte) (n int, err error) + type CompositeLogger struct + func NewCompositeLogger(loggers []Logger) *CompositeLogger + func (cl *CompositeLogger) ClearAllLogFile() error + func (cl *CompositeLogger) ClearCurLogFile() error + func (cl *CompositeLogger) Close() (err error) + func (cl *CompositeLogger) ReadLog(offset int64, length int64) (string, error) + func (cl *CompositeLogger) ReadTailLog(offset int64, length int64) (string, int64, bool, error) + func (cl *CompositeLogger) SetPid(pid int) + func (cl *CompositeLogger) Write(p []byte) (n int, err error) + type FileLogger struct + func NewFileLogger(name string, maxSize int64, backups int, logEventEmitter LogEventEmitter, ...) *FileLogger + func (l *FileLogger) ClearAllLogFile() error + func (l *FileLogger) ClearCurLogFile() error + func (l *FileLogger) Close() error + func (l *FileLogger) GetCurrentLogFile() string + func (l *FileLogger) GetPrevLogFile() string + func (l *FileLogger) ReadLog(offset int64, length int64) (string, error) + func (l *FileLogger) ReadTailLog(offset int64, length int64) (string, int64, bool, error) + func (l *FileLogger) SetPid(pid int) + func (l *FileLogger) Write(p []byte) (int, error) + type LogCaptureLogger struct + func NewLogCaptureLogger(underlineLogger Logger, captureMaxBytes int, stdType string, procName string, ...) *LogCaptureLogger + func (l *LogCaptureLogger) ClearAllLogFile() error + func (l *LogCaptureLogger) ClearCurLogFile() error + func (l *LogCaptureLogger) Close() error + func (l *LogCaptureLogger) ReadLog(offset int64, length int64) (string, error) + func (l *LogCaptureLogger) ReadTailLog(offset int64, length int64) (string, int64, bool, error) + func (l *LogCaptureLogger) SetPid(pid int) + func (l *LogCaptureLogger) Write(p []byte) (int, error) + type LogEventEmitter interface + type Logger interface + ClearAllLogFile func() error + ClearCurLogFile func() error + ReadLog func(offset int64, length int64) (string, error) + ReadTailLog func(offset int64, length int64) (string, int64, bool, error) + SetPid func(pid int) + func NewLogger(programName string, logFile string, locker sync.Locker, maxBytes int64, ...) Logger + type NullLocker struct + func NewNullLocker() *NullLocker + func (l *NullLocker) Lock() + func (l *NullLocker) Unlock() + type NullLogEventEmitter struct + func NewNullLogEventEmitter() *NullLogEventEmitter + type NullLogger struct + func NewNullLogger(logEventEmitter LogEventEmitter) *NullLogger + func (l *NullLogger) ClearAllLogFile() error + func (l *NullLogger) ClearCurLogFile() error + func (l *NullLogger) Close() error + func (l *NullLogger) ReadLog(offset int64, length int64) (string, error) + func (l *NullLogger) ReadTailLog(offset int64, length int64) (string, int64, bool, error) + func (l *NullLogger) SetPid(pid int) + func (l *NullLogger) Write(p []byte) (int, error) + type StdLogEventEmitter struct + Type string + func NewStderrLogEventEmitter(process_name string, group_name string, procPidFunc func() int) *StdLogEventEmitter + func NewStdoutLogEventEmitter(process_name string, group_name string, procPidFunc func() int) *StdLogEventEmitter + type StdLogger struct + func NewStderrLogger(logEventEmitter LogEventEmitter) *StdLogger + func NewStdoutLogger(logEventEmitter LogEventEmitter) *StdLogger + func (l *StdLogger) Write(p []byte) (int, error) + type SysLogger struct + func NewRemoteSysLogger(name string, config string, logEventEmitter LogEventEmitter) *SysLogger + func NewSysLogger(name string, logEventEmitter LogEventEmitter) *SysLogger + func (sl *SysLogger) Close() error + func (sl *SysLogger) Write(b []byte) (int, error)