domain

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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

func (entry *Entry) AddException(exception string)

Adds the given exception to this log entry

func (*Entry) AddStacktrace

func (entry *Entry) AddStacktrace(line string)

Adds the given line as a stacktrace to this entry

func (*Entry) Append

func (entry *Entry) Append(line string)

Appends the given line as part of the raw content of the entry

func (*Entry) AppendMessage

func (entry *Entry) AppendMessage(message string)

Appends the given text to the message of this entry

func (*Entry) Message

func (entry *Entry) Message() string

Returns the message part of this entry

func (*Entry) RawContent

func (entry *Entry) RawContent() string

Returns the raw content of this entry

func (*Entry) SetContent

func (entry *Entry) SetContent(content string)

Sets the raw content of this entry to the given value

func (*Entry) SetMessage

func (entry *Entry) SetMessage(message string)

Sets the message of this entry to the given value

func (*Entry) Stacktrace

func (entry *Entry) Stacktrace() string

Returns the stacktrace part of this entry

type Line added in v0.8.0

type Line struct {
	Content  string
	Filename string
	Index    int64
}

Represents a read line

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL