log

package
v1.4.185 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

log is used for logging

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

func Debugf(format string, v ...interface{})

func Debugln

func Debugln(v ...interface{})

func Errorf

func Errorf(format string, v ...interface{})

func Errorln

func Errorln(v ...interface{})

func Infof

func Infof(format string, v ...interface{})

func Infoln

func Infoln(v ...interface{})

func LogLevel

func LogLevel() int

LogLevel returns the current log level, -1 = no logging, 0 = debug, 1 = info, 2 = warn, 3 = error

func LogToFile

func LogToFile()

LogToFile enables logging to files

func Printf

func Printf(format string, v ...interface{})

func Println

func Println(v ...interface{})

func SetLogLevel

func SetLogLevel(level int)

SetLogLevel sets which log level to do, -1 = no logging, 0 = debug, 1 = info, 2 = warn, 3 = error

func Warnf

func Warnf(format string, v ...interface{})

func Warnln

func Warnln(v ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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