logger

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogFnc

type LogFnc func(format string, args ...interface{})
var DEFAULT_SIMPLE_LOG LogFnc = func(s string, i ...interface{}) {
	fmt.Printf(s+"\n", i...)
}

type Logger

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

func NewLog

func NewLog(log LogFnc) *Logger

func (*Logger) AddTag

func (l *Logger) AddTag(tag string) func()

func (*Logger) Clone

func (l *Logger) Clone() *Logger

func (*Logger) Log

func (l *Logger) Log(format string, args ...interface{})

func (*Logger) LogS

func (l *Logger) LogS(format string, args ...interface{})

func (*Logger) SetDetail

func (l *Logger) SetDetail(isEnabled bool)

func (*Logger) SetTag

func (l *Logger) SetTag(tag string) func()

Jump to

Keyboard shortcuts

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