mylog

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = New()

Functions

func Body

func Body() string

func Hex

func Hex(title string, msg any)

func HexDump

func HexDump(title string, msg any)

func Info

func Info(title string, msg ...any)

func Json

func Json(title string, msg ...any)

func MarshalJson

func MarshalJson(title string, msg any)

func Msg

func Msg() string

func SetDebug

func SetDebug(debug bool)

func Struct

func Struct(msg any)

func Success

func Success(title string, msg ...any)

func Trace

func Trace(title string, msg ...any)

func Warning

func Warning(title string, msg ...any)

Types

type Interface

type Interface interface {
	HexDump(title string, msg any)     //hex buf todo support fn return []byte
	Hex(title string, msg any)         //hex value
	Info(title string, msg ...any)     //info
	Trace(title string, msg ...any)    //跟踪
	Warning(title string, msg ...any)  //警告
	MarshalJson(title string, msg any) //pb json todo rename
	Json(title string, msg ...any)     //pb json todo rename
	Success(title string, msg ...any)  //成功
	Struct(msg any)                    //结构体 todo indent ,add title
	Body() string
	Msg() string
	SetDebug(debug bool)
}

func New

func New() Interface

Jump to

Keyboard shortcuts

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