logger

package
v0.0.0-...-4cad0ae Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

*

  • Copyright(c) 2020 Shenzhen shenbaise9527
  • All Rights Reserved
  • @File : logger.go
  • @Author : shenbaise9527
  • @Create : 2020-03-14 22:59:28
  • @Modified : 2020-05-20 21:32:59
  • @version : 1.0
  • @Description :

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

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

Debugf 打印日志.

func Errorf

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

Errorf 打印日志.

func GetLoggerWriter

func GetLoggerWriter() io.Writer

GetLoggerWriter 获取日志writer

func Infof

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

Infof 打印日志.

func NewLogger

func NewLogger(logName string) error

NewLogger 创建日志对象.

func Tracef

func Tracef(format string, args ...interface{})

Tracef 打印日志.

func Warnf

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

Warnf 打印日志.

Types

type GormLogger

type GormLogger struct {
}

GormLogger gorm日志插件.

func (*GormLogger) Print

func (*GormLogger) Print(values ...interface{})

Print gorm的打印接口.

Jump to

Keyboard shortcuts

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