log

package module
v0.0.0-...-c3160ee Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 6 Imported by: 0

README

log

介绍

简单的log

软件架构

软件架构说明

安装教程
  1. xxxx
  2. xxxx
  3. xxxx
使用说明
  1. xxxx
  2. xxxx
  3. xxxx
参与贡献
  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request
码云特技
  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. 码云官方博客 blog.gitee.com
  3. 你可以 https://gitee.com/explore 这个地址来了解码云上的优秀开源项目
  4. GVP 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
  5. 码云官方提供的使用手册 https://gitee.com/help
  6. 码云封面人物是一档用来展示码云会员风采的栏目 https://gitee.com/gitee-stars/

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

func Debugln

func Debugln(v ...interface{})

func Error

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

func Errorln

func Errorln(v ...interface{})

func Info

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

func Infoln

func Infoln(v ...interface{})

func Init

func Init(log_file bool, log_out bool)

func SetLogTime

func SetLogTime(ti time.Time)

func SetLogTimeFlag

func SetLogTimeFlag(show bool)

日志是否显示时间

func Warn

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

func Warnln

func Warnln(v ...interface{})

Types

type FileLog

type FileLog struct {
	// contains filtered or unexported fields
}

func (*FileLog) Init

func (f *FileLog) Init(filename string)

func (*FileLog) Printf

func (f *FileLog) Printf(format string, v ...interface{})

func (*FileLog) Println

func (f *FileLog) Println(v ...interface{})

func (*FileLog) SetLogTime

func (f *FileLog) SetLogTime(ti time.Time)

func (*FileLog) SetLogTimeFlag

func (f *FileLog) SetLogTimeFlag(show bool)

Jump to

Keyboard shortcuts

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