logger

package
v0.0.1-beta.11 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsoleLogger

func NewConsoleLogger() xlog.XLogger

func NewConsoleLoggerWith

func NewConsoleLoggerWith(stack xlog.Stack) xlog.XLogger

func NewConsoleLoggerWithTraceId

func NewConsoleLoggerWithTraceId(traceId string, stack xlog.Stack) xlog.XLogger

func NewConsoleTraceLogger

func NewConsoleTraceLogger(traceId string) xlog.XLogger

func NewDefaultLogger

func NewDefaultLogger() xlog.XLogger

func NewDefaultTraceLogger

func NewDefaultTraceLogger(traceId string) xlog.XLogger

func NewLogger

func NewLogger(path, category string, stack xlog.Stack, opts ...Option) xlog.XLogger

func NewLoggerWithTraceId

func NewLoggerWithTraceId(traceId, path, category string, stack xlog.Stack, opts ...Option) xlog.XLogger

func NewLoggers

func NewLoggers(path string, categories []string, stack xlog.Stack) *loggers

func NewRestyWrapper

func NewRestyWrapper(l xlog.XLogger) resty.Logger

func NewStdoutHook

func NewStdoutHook(f logrus.Formatter) *stdoutHook

Types

type LogFormat

type LogFormat int8
const (
	LogFormatText LogFormat = iota
	LogFormatJson
)

type Option

type Option func(*logger)

func WithFormat

func WithFormat(format LogFormat) Option

func WithFormatter

func WithFormatter(formatter logrus.Formatter) Option

Jump to

Keyboard shortcuts

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