xfmt

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 2 Imported by: 11

Documentation

Index

Constants

View Source
const (
	DefaultName  = "Defaultxfmt"
	DefaultLevel = "INFO"
)

Variables

This section is empty.

Functions

func DPanicf

func DPanicf(format string, fields ...interface{})

func Debugf

func Debugf(format string, fields ...interface{})

func Errorf

func Errorf(format string, fields ...interface{})

func Fatalf

func Fatalf(format string, fields ...interface{})

func GetLevel

func GetLevel() string

func GetName

func GetName() string

func Infof

func Infof(format string, fields ...interface{})

func Panicf

func Panicf(format string, fields ...interface{})

func SetLevel

func SetLevel(levelStr string) error

func String

func String() string

func Warnf

func Warnf(format string, fields ...interface{})

Types

type Option

type Option struct {
	Name  string
	Level string
}

func DefaultOption

func DefaultOption() *Option

type XFmt

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

func Default

func Default() (*XFmt, error)

func New

func New(opt *Option) (*XFmt, error)

func (*XFmt) DPanicf

func (xFmt *XFmt) DPanicf(format string, fields ...interface{})

func (*XFmt) Debugf

func (xFmt *XFmt) Debugf(format string, fields ...interface{})

func (*XFmt) Errorf

func (xFmt *XFmt) Errorf(format string, fields ...interface{})

func (*XFmt) Fatalf

func (xFmt *XFmt) Fatalf(format string, fields ...interface{})

func (*XFmt) Infof

func (xFmt *XFmt) Infof(format string, fields ...interface{})

func (*XFmt) Level

func (xFmt *XFmt) Level() xlog.Level

func (*XFmt) Panicf

func (xFmt *XFmt) Panicf(format string, fields ...interface{})

func (*XFmt) Warnf

func (xFmt *XFmt) Warnf(format string, fields ...interface{})

Jump to

Keyboard shortcuts

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