zap

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

*

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

*

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(optsFunc ...OptionFunc) *logger

Types

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 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

Jump to

Keyboard shortcuts

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