nano: github.com/lonnng/nano/internal/log Index | Files

package log

import "github.com/lonnng/nano/internal/log"

Index

Package Files

logger.go

Variables

var (
    Println func(v ...interface{})
    Fatal   func(v ...interface{})
    Fatalf  func(format string, v ...interface{})
)

func SetLogger Uses

func SetLogger(logger Logger)

SetLogger rewrites the default logger

type Logger Uses

type Logger interface {
    Println(v ...interface{})
    Fatal(v ...interface{})
    Fatalf(format string, v ...interface{})
}

Logger represents the log interface

Package log imports 2 packages (graph). Updated 2019-08-09. Refresh now. Tools for package owners.