log

package
v5.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package log implement the Log interface used by the webfmwk

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

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

Debugf output a debug message.

func Errorf

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

Errorf output an error message.

func Fatalf

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

Fatalf output an fatal message and then panic.

func GetLogger

func GetLogger() qlog.Log

GetLogger return an struct fullfilling the Log interface

func Infof

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

Infof output an info message.

func SetLogLevel

func SetLogLevel(level Level) (ok bool)

SetLogLevel set the global logger log level

func Warnf

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

Warnf output a warning message.

Types

type Level

type Level uint8

Level hold the logging level

const (
	LogErr Level = iota
	LogWarning
	LogInfo
	LogDebug
	LogPrint
)

Following contant hold the possible log levels

func (Level) String

func (l Level) String() string

Jump to

Keyboard shortcuts

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