log

package
v0.0.0-...-824b837 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package log provides logging functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string)

Debug prints a debugging log message.

func Debugf

func Debugf(msg string, args ...interface{})

Debugf formats a debugging log message.

func Error

func Error(msg string)

Error prints an error log message.

func Errorf

func Errorf(msg string, args ...interface{})

Errorf formats an error log message.

func Info

func Info(msg string)

Info prints an informational log message.

func Infof

func Infof(msg string, args ...interface{})

Infof formats an informational log message.

func SetMinLevel

func SetMinLevel(level Level)

SetMinLevel sets the minimum level to include in the logging output.

func Warn

func Warn(msg string)

Warn prints a warning log message.

func Warnf

func Warnf(msg string, args ...interface{})

Warnf formats a warning log message.

Types

type Level

type Level int

Level is the severity level of a log message.

const (
	DebugLevel Level = iota
	InfoLevel
	WarnLevel
	ErrorLevel
)

Jump to

Keyboard shortcuts

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