logger

package
v0.16.6 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Empty

type Empty struct{}

func (Empty) Debug

func (Empty) Debug(v ...interface{})

func (Empty) Error

func (Empty) Error(v ...interface{})

func (Empty) Info

func (Empty) Info(v ...interface{})

type Logger

type Logger interface {
	Debug(v ...interface{})
	Info(v ...interface{})
	Error(v ...interface{})
}

Logger super basic logging interface

type LoggerZap

type LoggerZap struct {
	// contains filtered or unexported fields
}

func DefaultLogger

func DefaultLogger(debug bool) *LoggerZap

DefaultLogger create a new logger instance for Disgord with the option to activate debugging.

func DefaultLoggerWithInstance

func DefaultLoggerWithInstance(log *zap.Logger) *LoggerZap

func (*LoggerZap) Debug

func (log *LoggerZap) Debug(v ...interface{})

func (*LoggerZap) Error

func (log *LoggerZap) Error(v ...interface{})

func (*LoggerZap) Info

func (log *LoggerZap) Info(v ...interface{})

Jump to

Keyboard shortcuts

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