Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IMessage ¶
type IMessage interface {
// GetComponentName returns the component name.
GetComponentName() string
// SetComponentName sets the component name.
SetComponentName(name string)
// GetContent returns the content.
GetContent() content.IContent
// SetContent sets the content.
SetContent(c content.IContent)
// GetFields returns the structured fields.
GetFields() options.Fields
// SetFields sets the structured fields.
SetFields(fields options.Fields)
// GetFlag returns the flag.
GetFlag() flag.Flag
// SetFlag sets the flag.
SetFlag(flag flag.Flag)
// GetID returns the id.
GetID() string
// SetID sets the id.
SetID(id string)
// GetLevel returns the level.
GetLevel() level.Level
// SetLevel sets the level.
SetLevel(l level.Level)
// GetMessage (low-level) returns the message.
GetMessage() *message
// GetOutputName returns the name of the output in use.
GetOutputName() string
// SetOutputName sets the name of the output in use.
SetOutputName(outputName string)
// GetOutputsNames returns the outputs names that should be used.
GetOutputsNames() []string
// SetOutputsNames sets the outputs names that should be used.
SetOutputsNames(outputsNames []string)
// GetProcessorName returns the name of the processor in use.
GetProcessorName() string
// SetProcessorName sets the name of the processor in use.
SetProcessorName(processorName string)
// GetProcessorsNames returns the processors names that should be used.
GetProcessorsNames() []string
// SetProcessorsNames sets the processors names that should be used.
SetProcessorsNames(processorsNames []string)
// GetRestoreLineBreak returns the line break status.
GetRestoreLineBreak() bool
// SetRestoreLineBreak sets the line break status.
SetRestoreLineBreak(s bool)
// AddTags adds one or more tags.
AddTags(tags ...string)
// GetTags retrieves tags.
GetTags() []string
// DeleteTag deletes a tag.
DeleteTag(tag string)
// ContainTag verifies if tags contains the specified tag.
ContainTag(tag string) bool
// GetTimestamp returns the timestamp.
GetTimestamp() time.Time
// SetTimestamp sets the timestamp.
SetTimestamp(timestamp time.Time)
}
IMessage specifies what a message does.
Click to show internal directories.
Click to hide internal directories.