log

package
v0.0.0-...-c744f44 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package log implements Tabula's format for logging different types of logs. This extends the already-powerful standard library and provides only the necessary features without using external dependencies. Provides info, debug, and performance loggers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v ...interface{})

Print calls l.Output to print to the debug logger. Arguments are handled in the manner of fmt.Print.

func Debugf

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

Printf calls l.Output to print to the debug logger. Arguments are handled in the manner of fmt.Printf.

func Debugln

func Debugln(v ...interface{})

Println calls l.Output to print to the debug logger. Arguments are handled in the manner of fmt.Println.

func Fatal

func Fatal(v ...interface{})

Print calls l.Output to print to the fatal logger. Arguments are handled in the manner of fmt.Print.

func Fatalf

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

Printf calls l.Output to print to the fatal logger. Arguments are handled in the manner of fmt.Printf.

func Fatalln

func Fatalln(v ...interface{})

Println calls l.Output to print to the fatal logger. Arguments are handled in the manner of fmt.Println.

func Info

func Info(v ...interface{})

Print calls l.Output to print to the info logger. Arguments are handled in the manner of fmt.Print.

func Infof

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

Printf calls l.Output to print to the info logger. Arguments are handled in the manner of fmt.Printf.

func Infoln

func Infoln(v ...interface{})

Println calls l.Output to print to the info logger. Arguments are handled in the manner of fmt.Println.

func Perf

func Perf(v ...interface{})

Print calls l.Output to print to the performance logger. Arguments are handled in the manner of fmt.Print.

func Perff

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

Printf calls l.Output to print to the performance logger. Arguments are handled in the manner of fmt.Printf.

func Perfln

func Perfln(v ...interface{})

Println calls l.Output to print to the performance logger. Arguments are handled in the manner of fmt.Println.

func SetColorized

func SetColorized(toggle bool)

func SetDebugOutput

func SetDebugOutput(out io.Writer)

SetOutput sets the output destination for the debug logger.

func SetFatalOutput

func SetFatalOutput(out io.Writer)

SetOutput sets the output destination for the fatal logger.

func SetInfoOutput

func SetInfoOutput(out io.Writer)

SetOutput sets the output destination for the info logger.

func SetPerfOutput

func SetPerfOutput(out io.Writer)

SetOutput sets the output destination for the performance logger.

func SetWarnOutput

func SetWarnOutput(out io.Writer)

SetOutput sets the output destination for the warning logger.

func Warn

func Warn(v ...interface{})

Print calls l.Output to print to the warning logger. Arguments are handled in the manner of fmt.Print.

func Warnf

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

Printf calls l.Output to print to the warning logger. Arguments are handled in the manner of fmt.Printf.

func Warnln

func Warnln(v ...interface{})

Println calls l.Output to print to the warning logger. Arguments are handled in the manner of fmt.Println.

Types

type ConstErr

type ConstErr string

func (ConstErr) Error

func (e ConstErr) Error() string

Jump to

Keyboard shortcuts

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