log

package
v0.0.0-...-ed6a5cb Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewColonTestingLog

func NewColonTestingLog(params ...interface{}) (interface{}, error)

NewColonTestingLog 测试日志,直接打印到控制台

Types

type ColonLogServiceProvider

type ColonLogServiceProvider struct {
	core.ServiceProvider

	Driver string // Driver

	// 日志级别
	Level contract.LogLevel
	// 日志输出格式方法
	Formatter contract.Formatter
	// 日志context上下文信息获取函数
	CtxFielder contract.CtxFielder
	// 日志输出信息
	Output io.Writer
}

ColonLogServiceProvider 服务提供者

func (*ColonLogServiceProvider) Boot

Boot 启动的时候注入

func (*ColonLogServiceProvider) IsDefer

func (l *ColonLogServiceProvider) IsDefer() bool

IsDefer 是否延迟加载

func (*ColonLogServiceProvider) Name

func (l *ColonLogServiceProvider) Name() string

Name 定义对应的服务字符串凭证

func (*ColonLogServiceProvider) Params

func (l *ColonLogServiceProvider) Params(c core.Container) []interface{}

Params 定义要传递给实例化方法的参数

func (*ColonLogServiceProvider) Register

Register 注册一个服务实例

type ColonTestingLog

type ColonTestingLog struct {
}

ColonTestingLog 是 Env 的具体实现

type ColonTestingLogProvider

type ColonTestingLogProvider struct {
}

func (*ColonTestingLogProvider) Boot

func (provider *ColonTestingLogProvider) Boot(c core.Container) error

Boot will called when the service instantiate

func (*ColonTestingLogProvider) IsDefer

func (provider *ColonTestingLogProvider) IsDefer() bool

IsDefer define whether the service instantiate when first make or register

func (*ColonTestingLogProvider) Name

func (provider *ColonTestingLogProvider) Name() string

/ Name define the name for this service

func (*ColonTestingLogProvider) Params

func (provider *ColonTestingLogProvider) Params(c core.Container) []interface{}

Params define the necessary params for NewInstance

func (*ColonTestingLogProvider) Register

func (provider *ColonTestingLogProvider) Register(c core.Container) core.NewInstance

Register registe a new function for make a service instance

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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