zlog

package
v2.0.0-...-638e5b6 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 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

func NewLoggerWithOption(optsFunc ...OptionFunc) Logger

type OptionFunc

type OptionFunc func(*options)

func AccessKey

func AccessKey(accessKey string) OptionFunc

func AccessKeySecret

func AccessKeySecret(accessKeySecret string) OptionFunc

func Compress

func Compress(compress bool) OptionFunc

func Driver

func Driver(driver string) OptionFunc

func EndPoint

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

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

func Project(project string) OptionFunc

func Topic

func Topic(topic string) OptionFunc

Directories

Path Synopsis
*
*
*
*

Jump to

Keyboard shortcuts

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