log

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

log

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(v ...interface{})

输出错误信息

func Exist

func Exist(filename string) bool

检查文件或目录是否存在 如果由 filename 指定的文件或目录存在则返回 true,否则返回 false

func Info

func Info(v ...interface{})

输出普通信息

func Init

func Init()

func Waring

func Waring(v ...interface{})

输出警告信息

Types

type LogHandle

type LogHandle struct {
	FirstTag string      //输出标记字符
	Logger   *log.Logger //logger对象
	File     *os.File    //log对应的文件对象
	// contains filtered or unexported fields
}

log句柄对象

func (*LogHandle) Init

func (this *LogHandle) Init(firstTag string, displayFile bool, s string)

func (*LogHandle) Log

func (this *LogHandle) Log(v ...interface{})

Jump to

Keyboard shortcuts

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