services

package
v0.0.0-...-41a006c Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsoleLog

func NewConsoleLog(params ...any) (any, error)

func NewRotateLog

func NewRotateLog(params ...any) (any, error)

func NewSingleLog

func NewSingleLog(params ...any) (any, error)

Types

type ConsoleLog

type ConsoleLog struct {
	Log
}

type Log

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

func (*Log) Debug

func (l *Log) Debug(ctx context.Context, msg string, data map[string]any)

func (*Log) Error

func (l *Log) Error(ctx context.Context, msg string, data map[string]any)

func (*Log) Fatal

func (l *Log) Fatal(ctx context.Context, msg string, data map[string]any)

func (*Log) Info

func (l *Log) Info(ctx context.Context, msg string, data map[string]any)

func (*Log) IsLevelEnable

func (l *Log) IsLevelEnable(level contract.LogLevel) bool

func (*Log) Panic

func (l *Log) Panic(ctx context.Context, msg string, data map[string]any)

func (*Log) SetFormatter

func (l *Log) SetFormatter(formatter contract.Formatter)

func (*Log) SetHandler

func (l *Log) SetHandler(handler contract.Handler)

func (*Log) SetLevel

func (l *Log) SetLevel(level contract.LogLevel)

func (*Log) SetWriter

func (l *Log) SetWriter(writer io.Writer)

func (*Log) Trace

func (l *Log) Trace(ctx context.Context, msg string, data map[string]any)

func (*Log) Warn

func (l *Log) Warn(ctx context.Context, msg string, data map[string]any)

type RotateLog

type RotateLog struct {
	Log
	// contains filtered or unexported fields
}

type SingleLog

type SingleLog struct {
	Log
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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