logs

package
v0.0.0-...-f3eac6d Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLogrusError

func IsLogrusError(message string) bool

Types

type DiscardFormatter

type DiscardFormatter struct{}

func (DiscardFormatter) Format

func (f DiscardFormatter) Format(entry *logrus.Entry) ([]byte, error)

type FirelensMessage

type FirelensMessage struct {
	Log               string `json:"log"`
	ContainerID       string `json:"container_id,omitempty"`
	ContainerName     string `json:"container_name,omitempty"`
	Source            Source `json:"source,omitempty"`              // "stdout" or "stderr"
	EcsTaskDefinition string `json:"ecs_task_definition,omitempty"` // ECS metadata
	EcsTaskArn        string `json:"ecs_task_arn,omitempty"`        // ECS metadata
	EcsCluster        string `json:"ecs_cluster,omitempty"`         // ECS metadata
	Etag              string `json:"etag,omitempty"`                // added by us
	Host              string `json:"host,omitempty"`                // added by us
}

type Source

type Source string
const (
	SourceStdout Source = "stdout"
	SourceStderr Source = "stderr"

	ErrorPrefix = " ** "
)

type TermLogFormatter

type TermLogFormatter struct {
	Term *term.Term
}

func (TermLogFormatter) Format

func (f TermLogFormatter) Format(entry *logrus.Entry) ([]byte, error)

Jump to

Keyboard shortcuts

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