Documentation
¶
Index ¶
- type Entry
- func (entry *Entry) AddException(exception string)
- func (entry *Entry) AddStacktrace(line string)
- func (entry *Entry) Append(line string)
- func (entry *Entry) AppendMessage(message string)
- func (entry *Entry) Message() string
- func (entry *Entry) RawContent() string
- func (entry *Entry) SetContent(content string)
- func (entry *Entry) SetMessage(message string)
- func (entry *Entry) Stacktrace() string
- type Line
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { Filename string Line int64 Time string Level string Category string Origin string Exceptions []string // contains filtered or unexported fields }
Represents a log entry. Log entries can have a lot of different fields, this struct tries to balance the most used fields for formatting and filtering
func (*Entry) AddException ¶
Adds the given exception to this log entry
func (*Entry) AddStacktrace ¶
Adds the given line as a stacktrace to this entry
func (*Entry) AppendMessage ¶
Appends the given text to the message of this entry
func (*Entry) RawContent ¶
Returns the raw content of this entry
func (*Entry) SetContent ¶
Sets the raw content of this entry to the given value
func (*Entry) SetMessage ¶
Sets the message of this entry to the given value
func (*Entry) Stacktrace ¶
Returns the stacktrace part of this entry
Click to show internal directories.
Click to hide internal directories.