data

package
Version: v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZapLog

type ZapLog struct {
	// operating var
	DisableLogger bool

	OutputToConsole bool
	AppName         string
	// contains filtered or unexported fields
}

ZapLog is a wrapper for Zap logger package

DisableLogger = disables the logger from operations, this allows code to be left in place while not performing logging action OutputToConsole = redirects log output to console instead of file AppName = required, this app's name

func (*ZapLog) Debug

func (z *ZapLog) Debug(logMessageData string, fields ...zap.Field)

Debug is faster logging, but requires import of zap package, uses zap.String(), zap.Int(), etc in fields parameters

func (*ZapLog) Debugf

func (z *ZapLog) Debugf(logTemplateData string, args ...interface{})

Debugf is a Sugared Logging, allows template variable such as %s

func (*ZapLog) Debugw

func (z *ZapLog) Debugw(logMessageData string, keyValuePairs ...interface{})

Debugw is a Sugared Logging, allows key value pairs variadic

func (*ZapLog) Error

func (z *ZapLog) Error(logMessageData string, fields ...zap.Field)

Error is faster logging, but requires import of zap package, uses zap.String(), zap.Int(), etc in fields parameters

func (*ZapLog) Errorf

func (z *ZapLog) Errorf(logTemplateData string, args ...interface{})

Errorf is a Sugared Logging, allows template variable such as %s

func (*ZapLog) Errorw

func (z *ZapLog) Errorw(logMessageData string, keyValuePairs ...interface{})

Errorw is a Sugared Logging, allows key value pairs variadic

func (*ZapLog) Fatal

func (z *ZapLog) Fatal(logMessageData string, fields ...zap.Field)

Fatal is faster logging, but requires import of zap package, uses zap.String(), zap.Int(), etc in fields parameters

func (*ZapLog) Fatalf

func (z *ZapLog) Fatalf(logTemplateData string, args ...interface{})

Fatalf is a Sugared Logging, allows template variable such as %s

func (*ZapLog) Fatalw

func (z *ZapLog) Fatalw(logMessageData string, keyValuePairs ...interface{})

Fatalw is a Sugared Logging, allows key value pairs variadic

func (*ZapLog) Info

func (z *ZapLog) Info(logMessageData string, fields ...zap.Field)

Info is faster Logging, but requires import of zap package, uses zap.String(), zap.Int(), etc in fields parameters

func (*ZapLog) Infof

func (z *ZapLog) Infof(logTemplateData string, args ...interface{})

Infof is a Sugared Logging, allows template variable such as %s

func (*ZapLog) Infow

func (z *ZapLog) Infow(logMessageData string, keyValuePairs ...interface{})

Infow is a Sugared Logging, allows key value pairs variadic

func (*ZapLog) Init

func (z *ZapLog) Init() error

Init will initialize and prepare the zap log wrapper for use,

...-internal-err.log = internal zap errors logged, this file may be created but may contain no data as there may not be any internal zap errors log output to file is 'appname.log'

func (*ZapLog) Panic

func (z *ZapLog) Panic(logMessageData string, fields ...zap.Field)

Panic is faster logging, but requires import of zap package, uses zap.String(), zap.Int(), etc in fields parameters

func (*ZapLog) Panicf

func (z *ZapLog) Panicf(logTemplateData string, args ...interface{})

Panicf is a Sugared Logging, allows template variable such as %s

func (*ZapLog) Panicw

func (z *ZapLog) Panicw(logMessageData string, keyValuePairs ...interface{})

Panicw is a Sugared Logging, allows key value pairs variadic

func (*ZapLog) Printf

func (z *ZapLog) Printf(format string, items ...interface{})

Printf is alias method to Infof

func (*ZapLog) Sync

func (z *ZapLog) Sync()

Sync will flush log buffer to disk

func (*ZapLog) Warn

func (z *ZapLog) Warn(logMessageData string, fields ...zap.Field)

Warn is faster logging, but requires import of zap package, uses zap.String(), zap.Int(), etc in fields parameters

func (*ZapLog) Warnf

func (z *ZapLog) Warnf(logTemplateData string, args ...interface{})

Warnf is a Sugared Logging, allows template variable such as %s

func (*ZapLog) Warnw

func (z *ZapLog) Warnw(logMessageData string, keyValuePairs ...interface{})

Warnw is a Sugared Logging, allows key value pairs variadic

Source Files

Jump to

Keyboard shortcuts

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