logger

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogTypeTTY  = "console"
	LogTypeJSON = "json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentName

type ComponentName string
var (
	ComponentMain           ComponentName = "main"
	ComponentAPI            ComponentName = "api"
	ComponentStorage        ComponentName = "redis"
	ComponentParser         ComponentName = "parser"
	ComponentCollector      ComponentName = "collector"
	ComponentSubscribeEvent ComponentName = "SubscribeEvent"
	ComponentExecutor       ComponentName = "executor"
	ComponentDemultiplexer  ComponentName = "demultiplexer"
	ComponentHLFStreamsPool ComponentName = "hlf steams pool"
	ComponentHealth         ComponentName = "healthcheck"
	ComponentService        ComponentName = "service"
	ComponentProducer       ComponentName = "producer"
)

type Labels

type Labels struct {
	Version   string
	Component ComponentName
	UserName  string
	OrgName   string
	Channel   string
}

func (Labels) Fields

func (l Labels) Fields() (fields []glog.Field)

type SyncLoggerMethod

type SyncLoggerMethod = func() error

func CreateLogger

func CreateLogger(loggerType, logLevel string) (glog.Logger, SyncLoggerMethod, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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