zlog

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

*

  • @Author : nopsky
  • @Email : cnnopsky@gmail.com
  • @Date : 2021/3/18 14:33

*

  • @Author : nopsky
  • @Email : cnnopsky@gmail.com
  • @Date : 2020/9/27 17:56

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func Debugf

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

func Error

func Error(args ...interface{})

func Errorf

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

func Fatal

func Fatal(args ...interface{})

func Fatalf

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

func Info

func Info(args ...interface{})

func Infof

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

func Init

func Init()

func NewOptionsWithConfig

func NewOptionsWithConfig() options

func Panic

func Panic(args ...interface{})

func Panicf

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

func SetLevel

func SetLevel(level string)

func Warn

func Warn(args ...interface{})

func Warnf

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

Types

type Logger

type Logger interface {
	Debugf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Warnf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	Panicf(format string, args ...interface{})
	Fatalf(format string, args ...interface{})
	SetLevel(level string)

	Debug(args ...interface{})
	Info(args ...interface{})
	Warn(args ...interface{})
	Error(args ...interface{})
	Panic(args ...interface{})
	Fatal(args ...interface{})
}

func Instance

func Instance() Logger

func NewLogger

func NewLogger(optsFunc ...OptionFunc) Logger

func NewLoggerWithOption added in v0.0.21

func NewLoggerWithOption(optsFunc ...OptionFunc) Logger

type OptionFunc

type OptionFunc func(*options)

func AccessKey added in v0.0.21

func AccessKey(accessKey string) OptionFunc

func AccessKeySecret added in v0.0.21

func AccessKeySecret(accessKeySecret string) OptionFunc

func Compress

func Compress(compress bool) OptionFunc

func Driver

func Driver(driver string) OptionFunc

func EndPoint added in v0.0.21

func EndPoint(endpoint string) OptionFunc

func Filename

func Filename(filename string) OptionFunc

func Format

func Format(format string) OptionFunc

func Level

func Level(level string) OptionFunc

func LogStore added in v0.0.21

func LogStore(logStore string) OptionFunc

func MaxAge

func MaxAge(maxAge int) OptionFunc

func MaxBackups

func MaxBackups(maxBackups int) OptionFunc

func MaxSize

func MaxSize(maxSize int) OptionFunc

func Output

func Output(output string) OptionFunc

func Project added in v0.0.21

func Project(project string) OptionFunc

func Topic added in v0.0.21

func Topic(topic string) OptionFunc

Directories

Path Synopsis
* * @Author : nopsky * @Email : cnnopsky@gmail.com * @Date : 2021/12/13 16:22
* * @Author : nopsky * @Email : cnnopsky@gmail.com * @Date : 2021/12/13 16:22
* * @Author : nopsky * @Email : cnnopsky@gmail.com * @Date : 2020/9/27 17:58 * * @Author : nopsky * @Email : cnnopsky@gmail.com * @Date : 2020/9/27 17:57
* * @Author : nopsky * @Email : cnnopsky@gmail.com * @Date : 2020/9/27 17:58 * * @Author : nopsky * @Email : cnnopsky@gmail.com * @Date : 2020/9/27 17:57

Jump to

Keyboard shortcuts

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