logging

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoggingService

func NewLoggingService(provider logProvider, cp configProvider, restarter doguRestarter, descriptionGetter doguDescriptionGetter, deploymentGetter deploymentGetter) *loggingService

NewLoggingService creates a new logging service.

Types

type LogLevel added in v0.8.0

type LogLevel int

LogLevel is the log level that can be defined for a dogu.

const (
	LevelUnknown LogLevel = iota
	LevelError
	LevelWarn
	LevelInfo
	LevelDebug
)

func CreateLogLevelFromProto added in v0.8.0

func CreateLogLevelFromProto(pLevel pb.LogLevel) (LogLevel, error)

CreateLogLevelFromProto maps protobuf log level to an internal log level used in application

func CreateLogLevelFromString added in v0.8.0

func CreateLogLevelFromString(sLevel string) (LogLevel, error)

CreateLogLevelFromString maps a string to an internal log level used in application

func (LogLevel) String added in v0.8.0

func (l LogLevel) String() string

String converts LogLevel type to a string

type LokiLogProvider added in v0.5.0

type LokiLogProvider struct {
	// contains filtered or unexported fields
}

func NewLokiLogProvider added in v0.5.0

func NewLokiLogProvider(gatewayUrl string, username string, password string) *LokiLogProvider

Jump to

Keyboard shortcuts

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