log

package
v2.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

package log implement the ILog interface used by the webfmwk

Index

Constants

View Source
const (
	LogERR   = 0
	LogWARN  = 1
	LogINFO  = 2
	LogDEBUG = 3
)

Variables

This section is empty.

Functions

func Debugf

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

func Errorf

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

func Fatalf

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

func Infof

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

func SetLogLevel

func SetLogLevel(level int) (ok bool)

func Warnf

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

Types

type ILog

type ILog interface {
	Errorf(format string, v ...interface{})
	Warnf(format string, v ...interface{})
	Infof(format string, v ...interface{})
	Debugf(format string, v ...interface{})
	Fatalf(format string, v ...interface{})
}

ILog interface implement the logging system inside the API

func GetLogger

func GetLogger() ILog

Jump to

Keyboard shortcuts

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