types

package
v1.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	PatternConfDefault            = "[%d] [%p] %c - %m"
	PatternConfMessagePassThrough = "%m"
	PatternConfColoured           = "%[[%d] [%p] %c%] - %m"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LayoutConfiguration

type LayoutConfiguration interface {
	GetType() LayoutType
	GetPattern() PatternConfig
}

type LayoutContext

type LayoutContext interface {
	GetLevel() string
	GetCategoryName() string
	GetLogData() string
	GetTokens() Tokens
}

type LayoutType

type LayoutType uint8
const (
	LayoutTypeDefault LayoutType = iota
	LayoutTypeBasic
	LayoutTypeColoured
	LayoutTypeMessagePassThrough
	LayoutTypePattern
)

func (LayoutType) IsValid

func (lt LayoutType) IsValid() bool

func (LayoutType) String

func (lt LayoutType) String() string

type PatternConfig

type PatternConfig string

type TokenFn

type TokenFn func() any

type Tokens

type Tokens map[string]TokenFn

Jump to

Keyboard shortcuts

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