types

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultDir

func GetDefaultDir() string

func GetDefaultFilenameFormat

func GetDefaultFilenameFormat() string

func ParseField

func ParseField(fields xlog.Fields) string

func ParseTrace

func ParseTrace(ctx context.Context) string

Types

type Option

type Option struct {
	Stack  xlog.Stack     // 日志存储方式
	Level  xlog.Level     // 日志等级
	Format xlog.LogFormat // 日志格式

	StdPrint bool // 是否在控制台输出
}

func DefaultOption

func DefaultOption() *Option

Jump to

Keyboard shortcuts

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