log

package
v0.0.0-...-f7dc3f6 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FmtOutput

type FmtOutput struct{}

func (*FmtOutput) Write

func (f *FmtOutput) Write(p []byte) (n int, err error)

Support webassembly

type Log

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

func (*Log) Debug

func (log *Log) Debug(msg string, args ...interface{})

func (*Log) Error

func (log *Log) Error(msg string, args ...interface{})

func (*Log) Fatal

func (log *Log) Fatal(msg string, args ...interface{})

func (*Log) Info

func (log *Log) Info(msg string, args ...interface{})

func (*Log) Panic

func (log *Log) Panic(msg string, args ...interface{})

func (*Log) Trace

func (log *Log) Trace(msg string, args ...interface{})

func (*Log) Warn

func (log *Log) Warn(msg string, args ...interface{})

type Logger

type Logger interface {
	Trace(msg string, args ...interface{})
	Debug(msg string, args ...interface{})
	Info(msg string, args ...interface{})
	Warn(msg string, args ...interface{})
	Error(msg string, args ...interface{})
	Fatal(msg string, args ...interface{})
	Panic(msg string, args ...interface{})
}

func New

func New(context string) Logger

Jump to

Keyboard shortcuts

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