elog

package module
v0.0.0-...-25d8d49 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 10 Imported by: 1

README

elog

一个简单的日志模块

Documentation

Index

Constants

View Source
const (
	DebugLevel = iota
	InfoLevel
	WarnLevel
	ErrorLevel
	PanicLevel
)

Variables

View Source
var (
	Logger *logger
)

Functions

func NewErrEmailFormat

func NewErrEmailFormat(email string) error

func NewErrLoginFail

func NewErrLoginFail(email string) error

func NewErrPasswordFormat

func NewErrPasswordFormat(password string) error

func NewErrPathNameIsExist

func NewErrPathNameIsExist(path string, name string) error

func NewErrPathNotDir

func NewErrPathNotDir(path string) error

func NewErrPathNotExist

func NewErrPathNotExist(path string) error

func NewErrPathNotFile

func NewErrPathNotFile(path string) error

func NewErrUnauthorized

func NewErrUnauthorized(path string) error

func NewErrUserEmailIsExist

func NewErrUserEmailIsExist(email string) error

func NewErrUserNameFormat

func NewErrUserNameFormat(userName string) error

func NewErrUserNameIsExist

func NewErrUserNameIsExist(name string) error

func Panic

func Panic(err error)

func WrapErr

func WrapErr(err error) error

Types

type Err

type Err interface {
	error
	GetLevel() (level int)
	Local() (file string, line int)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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