core

package
v0.0.0-...-23becbe Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLogLevel = log.LevelInfo
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

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

func NewComponent

func NewComponent() *Component

func (*Component) Logger

func (c *Component) Logger() logger.Logger

func (*Component) SetLogLevel

func (c *Component) SetLogLevel(level int)

func (*Component) SetLogName

func (c *Component) SetLogName(name string)

func (*Component) SetLogger

func (c *Component) SetLogger(opt *LoggerOption)

type ComponentBuilder

type ComponentBuilder interface {
	ComponentLogger
}

type ComponentLogger

type ComponentLogger interface {
	SetLogger(opt *LoggerOption)
	SetLogLevel(level int)
	SetLogName(name string)
	Logger() logger.Logger
}

type LoggerOption

type LoggerOption struct {
	Name  string
	Level int
}

Jump to

Keyboard shortcuts

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