logf

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ECHO_STD = 1
)

Variables

This section is empty.

Functions

func LogOf

func LogOf(lg Logger)

func New

func New() *loger

func Print

func Print(args ...any)

func Printf

func Printf(format string, args ...any)

Types

type Logger

type Logger interface {
	Printf(string, ...any)
	Print(...any)
}

* interface of log

  • Logger is simple and small
  • Convenient injection into your own log system

func Log

func Log() Logger

Jump to

Keyboard shortcuts

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