Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GinLogEvent ¶
type GinLogEvent struct {
Level string `json:"level"`
Timestamp time.Time `json:"timestamp"`
Prefix string `json:"prefix"`
Message string `json:"message"`
Error string `json:"error,omitempty"`
}
GinLogEvent represents a parsed Gin log entry
type LogEvent ¶
type LogEvent struct {
Index uint64 `json:"index"`
Level log.Level `json:"level"`
Timestamp time.Time `json:"time"`
CorrelationID string `json:"correlationid"`
Prefix string `json:"prefix"`
Message string `json:"message"`
Error string `json:"error"`
Function string `json:"function"`
Fields map[string]interface{} `json:"fields"`
}
type LogWriterType ¶
type LogWriterType string
const ( LogWriterTypeConsole LogWriterType = "console" LogWriterTypeFile LogWriterType = "file" LogWriterTypeMemory LogWriterType = "memory" LogWriterTypeLogStore LogWriterType = "logstore" )
type OutputFormat ¶ added in v1.4.63
type OutputFormat string
OutputFormat defines the format used for file writer output. "logfmt" is the default AI-friendly text format; "json" preserves structured JSON output.
const ( OutputFormatJSON OutputFormat = "json" OutputFormatLogfmt OutputFormat = "logfmt" )
type WriterConfiguration ¶
type WriterConfiguration struct {
Type LogWriterType `json:"type"`
Writer io.Writer `json:"-"`
Level levels.LogLevel `json:"level"`
TimeFormat string `json:"timeformat"`
FileName string `json:"filepath,omitempty"`
LogNameFormat string `json:"lognameformat,omitempty"`
MaxSize int64 `json:"buffersize,omitempty"`
MaxBackups int `json:"maxfiles,omitempty"`
DisableTimestamp bool `json:"disabletimestamp,omitempty"`
OutputType OutputFormat `json:"outputtype,omitempty"`
DBPath string `json:"dbpath,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.