ulog

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 5 Imported by: 0

README

ulog

介绍

简易的 logger field 用 [], 比如: [E] [Time: yyyy-mm-dd HH:MM:SS] [Path: main.go:23] [name: xxx] [age: 23] [Err: xxx]

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func Debugf

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

func Error added in v1.0.0

func Error(args ...interface{})

func Errorf added in v1.0.0

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

func Fatal added in v1.0.0

func Fatal(args ...interface{})

func Fatalf added in v1.0.0

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

func Info

func Info(args ...interface{})

func Infof

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

func Panic added in v1.0.0

func Panic(args ...interface{})

func Panicf added in v1.0.0

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

func SetLogLevel added in v1.0.0

func SetLogLevel(level LogLevel)

func Warn

func Warn(args ...interface{})

func Warnf

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

Types

type LogLevel added in v1.0.0

type LogLevel uint8
const (
	DebugLevel LogLevel = iota
	InfoLevel
	WarnLevel
	ErrorLevel
	FatalLevel
	PanicLevel
)

func GetLogLevel added in v1.0.0

func GetLogLevel() LogLevel

type LogLevelString added in v1.0.0

type LogLevelString string

func (LogLevelString) GetLevel added in v1.0.0

func (lls LogLevelString) GetLevel() LogLevel

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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