Versions in this module Expand all Collapse all v1 v1.1.0 Jan 11, 2025 v1.0.0 Dec 16, 2024 Changes in this version + func Flush() + func GetLoggingConfig() *config.LoggingConfig + func RegisterWebsocketHandler(...) + func SetLogging(loggingCfg *config.LoggingConfig, appName string, baseDir string) + type BufferedWriter struct + func NewBufferedWriter(innerWriter io.Writer, bufferSize int, flushPeriod time.Duration) (*BufferedWriter, error) + func (bufWriter *BufferedWriter) Close() error + func (bufWriter *BufferedWriter) Flush() + func (bufWriter *BufferedWriter) String() string + func (bufWriter *BufferedWriter) Write(bytes []byte) (n int, err error) + type ConsoleWriter struct + func NewConsoleWriter() (*ConsoleWriter, error) + func (console *ConsoleWriter) String() string + func (console *ConsoleWriter) Write(bytes []byte) (int, error) + type EmptyLogger struct + func (EmptyLogger) Write(p []byte) (n int, err error) + type FileReceiver struct + func NewFileReceiver(writer io.Writer, minLogLevel log.LogLevel) *FileReceiver + func (ar *FileReceiver) AfterParse(initArgs log.CustomReceiverInitArgs) error + func (ar *FileReceiver) Close() error + func (ar *FileReceiver) Flush() + func (ar *FileReceiver) ReceiveMessage(message string, level log.LogLevel, context log.LogContextInterface) error + type RollingFileWriterSize struct + func NewRollingFileWriterSize(fpath string, atype rollingArchiveType, apath string, maxSize int64, ...) (*RollingFileWriterSize, error) + func (rw RollingFileWriterSize) Close() error + func (rw RollingFileWriterSize) Write(bytes []byte) (n int, err error) + func (rws *RollingFileWriterSize) String() string + type RollingFileWriterTime struct + func NewRollingFileWriterTime(fpath string, atype rollingArchiveType, apath string, maxr int, ...) (*RollingFileWriterTime, error) + func (rw RollingFileWriterTime) Close() error + func (rw RollingFileWriterTime) Write(bytes []byte) (n int, err error) + func (rwt *RollingFileWriterTime) String() string + type WebsocketReceiver struct + func (ar *WebsocketReceiver) AfterParse(initArgs log.CustomReceiverInitArgs) error + func (ar *WebsocketReceiver) Close() error + func (ar *WebsocketReceiver) Flush() + func (ar *WebsocketReceiver) ReceiveMessage(message string, level log.LogLevel, context log.LogContextInterface) error