logging

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//F as
	F *os.File
	//DefaultPrefix s
	DefaultPrefix = ""
	//DefaultCallerDepth a
	DefaultCallerDepth = 2
)

Functions

func CheckNotExist

func CheckNotExist(src string) bool

CheckNotExist a

func CheckPermission

func CheckPermission(src string) bool

CheckPermission a

func Debug

func Debug(v ...interface{})

Debug a

func Error

func Error(v ...interface{})

Error as

func Fatal

func Fatal(v ...interface{})

Fatal ldevel

func GetExt

func GetExt(fileName string) string

GetExt a

func GetSize

func GetSize(f multipart.File) (int, error)

GetSize a

func Info

func Info(v ...interface{})

Info a

func IsNotExistMkDir

func IsNotExistMkDir(src string) error

IsNotExistMkDir a

func MkDir

func MkDir(src string) error

MkDir a

func MustOpen

func MustOpen(fileName, filePath string) (*os.File, error)

MustOpen a

func Open

func Open(name string, flag int, perm os.FileMode) (*os.File, error)

Open a

func Setup

func Setup()

Setup setup

func Warn

func Warn(v ...interface{})

Warn a

Types

type Level

type Level int

Level a

const (
	//DEBUG a
	DEBUG Level = iota
	//INFO a
	INFO
	//WARNING a
	WARNING
	//ERROR a
	ERROR
	//FATAL a
	FATAL
)

Jump to

Keyboard shortcuts

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