nanoDB: github.com/jackyzha0/nanoDB/log Index | Files

package log

import "github.com/jackyzha0/nanoDB/log"

Index

Package Files

log.go

Constants

const (
    FATAL = 0 // fatal only
    WARN  = 1 // warn + fatal
    INFO  = 2 // all
)

Variables

var (
    // IsShellMode determines what to print to.
    // if false, use logrus. if true, print raw to tty
    IsShellMode = false
)

func Fatal Uses

func Fatal(err error)

func Info Uses

func Info(format string, args ...interface{})

func Prompt Uses

func Prompt(p string)

func SetLoggingLevel Uses

func SetLoggingLevel(l int)

func Success Uses

func Success(format string, args ...interface{})

func WInfo Uses

func WInfo(w http.ResponseWriter, format string, args ...interface{})

func WWarn Uses

func WWarn(w http.ResponseWriter, format string, args ...interface{})

func Warn Uses

func Warn(format string, args ...interface{})

Package log imports 4 packages (graph) and is imported by 3 packages. Updated 2020-04-18. Refresh now. Tools for package owners.