Documentation ¶
Index ¶
- Constants
- type EntryBatch
- func (e *EntryBatch) AddMessage(severity int)
- func (e *EntryBatch) Debug(message string) error
- func (e *EntryBatch) Error(err error) error
- func (e *EntryBatch) Fatal(message string) error
- func (e *EntryBatch) Handle() error
- func (e *EntryBatch) Info(message string) error
- func (e *EntryBatch) Trace(message string) error
- func (e *EntryBatch) Warning(message string) error
- func (e *EntryBatch) WithBatchId(id string) *EntryBatch
- func (e *EntryBatch) WithMessage(severity int, message string) *EntryBatch
- type Logger
- func (l *Logger) Batch(id string) *EntryBatch
- func (l *Logger) CreateEntry(severity int, message string) *EntryBatch
- func (l *Logger) Debug(message string) error
- func (l *Logger) Debugf(format string, arguments ...any) error
- func (l *Logger) Error(err error) error
- func (l *Logger) Fatal(message string) error
- func (l *Logger) Fatalf(format string, arguments ...any) error
- func (l *Logger) Info(message string) error
- func (l *Logger) Infof(format string, arguments ...any) error
- func (l *Logger) Init() error
- func (l *Logger) Initialize() error
- func (l *Logger) LogAndExit(message interface{}) int
- func (l *Logger) Trace(message string) error
- func (l *Logger) Tracef(format string, arguments ...any) error
- func (l *Logger) Warning(message string) error
- func (l *Logger) Warningf(format string, arguments ...any) error
- type Message
Constants ¶
View Source
const ( LOG_TRACE = iota LOG_DEBUG LOG_INFO LOG_WARNING LOG_ERROR LOG_FATAL )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntryBatch ¶
type EntryBatch struct { IsFormatted bool Format formats.Format BatchId string Messages []*Message IsHandled bool Handler handlers.Handler }
func (*EntryBatch) AddMessage ¶
func (e *EntryBatch) AddMessage(severity int)
func (*EntryBatch) Handle ¶
func (e *EntryBatch) Handle() error
func (*EntryBatch) Warning ¶
func (e *EntryBatch) Warning(message string) error
Warning Message Accessors
func (*EntryBatch) WithBatchId ¶
func (e *EntryBatch) WithBatchId(id string) *EntryBatch
func (*EntryBatch) WithMessage ¶
func (e *EntryBatch) WithMessage(severity int, message string) *EntryBatch
type Logger ¶
type Logger struct { Name string Level int Handler handlers.Handler Format formats.Format Fallback *handlers.FallbackHandler }
func (*Logger) Batch ¶
func (l *Logger) Batch(id string) *EntryBatch
func (*Logger) CreateEntry ¶
func (l *Logger) CreateEntry(severity int, message string) *EntryBatch
func (*Logger) Initialize ¶
func (*Logger) LogAndExit ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.