log

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by log-gen. DO NOT EDIT.

Code generated by log-gen. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(lvl zapcore.Level, msg string) *zapcore.CheckedEntry

func Core

func Core() zapcore.Core

func DPanic

func DPanic(msg string, fields ...Field)

func Debug

func Debug(msg string, fields ...Field)

func Error

func Error(msg string, fields ...Field)

func Fatal

func Fatal(msg string, fields ...Field)

func GetLogger

func GetLogger(outputPath, errorPath []string) *log.Logger

func Info

func Info(msg string, fields ...Field)

func InitLogger

func InitLogger()

func Level

func Level() zapcore.Level

func Log

func Log(lvl zapcore.Level, msg string, fields ...Field)

func Panic

func Panic(msg string, fields ...Field)

func Sync

func Sync() error

func Warn

func Warn(msg string, fields ...Field)

Types

type Field

type Field = logcore.Field

func Any

func Any(key string, value interface{}) Field

func Binary

func Binary(key string, val []byte) Field

func Bool

func Bool(key string, val bool) Field

func Boolp

func Boolp(key string, val *bool) Field

func ByteString

func ByteString(key string, val []byte) Field

func Complex128

func Complex128(key string, val complex128) Field

func Complex128p

func Complex128p(key string, val *complex128) Field

func Complex64

func Complex64(key string, val complex64) Field

func Complex64p

func Complex64p(key string, val *complex64) Field

func Duration

func Duration(key string, val time.Duration) Field

func Durationp

func Durationp(key string, val *time.Duration) Field

func Float32

func Float32(key string, val float32) Field

func Float32p

func Float32p(key string, val *float32) Field

func Float64

func Float64(key string, val float64) Field

func Float64p

func Float64p(key string, val *float64) Field

func Inline

func Inline(val zapcore.ObjectMarshaler) Field

func Int

func Int(key string, val int) Field

func Int16

func Int16(key string, val int16) Field

func Int16p

func Int16p(key string, val *int16) Field

func Int32

func Int32(key string, val int32) Field

func Int32p

func Int32p(key string, val *int32) Field

func Int64

func Int64(key string, val int64) Field

func Int64p

func Int64p(key string, val *int64) Field

func Int8

func Int8(key string, val int8) Field

func Int8p

func Int8p(key string, val *int8) Field

func Intp

func Intp(key string, val *int) Field

func Namespace

func Namespace(key string) Field

func Object

func Object(key string, val zapcore.ObjectMarshaler) Field

func Reflect

func Reflect(key string, val interface{}) Field

func Skip

func Skip() Field

func Stack

func Stack(key string) Field

func StackSkip

func StackSkip(key string, skip int) Field

func String

func String(key string, val string) Field

func Stringer

func Stringer(key string, val fmt.Stringer) Field

func Stringp

func Stringp(key string, val *string) Field

func Time

func Time(key string, val time.Time) Field

func Timep

func Timep(key string, val *time.Time) Field

func Uint

func Uint(key string, val uint) Field

func Uint16

func Uint16(key string, val uint16) Field

func Uint16p

func Uint16p(key string, val *uint16) Field

func Uint32

func Uint32(key string, val uint32) Field

func Uint32p

func Uint32p(key string, val *uint32) Field

func Uint64

func Uint64(key string, val uint64) Field

func Uint64p

func Uint64p(key string, val *uint64) Field

func Uint8

func Uint8(key string, val uint8) Field

func Uint8p

func Uint8p(key string, val *uint8) Field

func Uintp

func Uintp(key string, val *uint) Field

func Uintptr

func Uintptr(key string, val uintptr) Field

func Uintptrp

func Uintptrp(key string, val *uintptr) Field

type Logger

type Logger = log.Logger

func Named

func Named(s string) *Logger

func With

func With(fields ...Field) *Logger

func WithOptions

func WithOptions(opts ...Option) *Logger

type Option

type Option = log.Option

type SugaredLogger

type SugaredLogger = log.SugaredLogger

func Sugar

func Sugar() *SugaredLogger

Jump to

Keyboard shortcuts

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