logger

package module
v0.0.0-...-d5769a4 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2020 License: MIT Imports: 2 Imported by: 9

README

logger

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Verbosity int
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(prefix string, verbosity int) *Logger

NewLogger returns a logger with the specified verbosity level. prefix: string: the prefix for the logger verbosity: int: declares the verbosity level

  • 0: default logging (info, warning, error)
  • 1: includes 0, plus debug logging
  • 2: includes 1, plus trace logging

func (*Logger) Debug

func (logger *Logger) Debug(args ...interface{})

func (*Logger) Error

func (logger *Logger) Error(args ...interface{})

func (*Logger) Fatal

func (logger *Logger) Fatal(args ...interface{})

func (*Logger) Info

func (logger *Logger) Info(args ...interface{})

func (*Logger) Panic

func (logger *Logger) Panic(args ...interface{})

func (*Logger) Trace

func (logger *Logger) Trace(args ...interface{})

func (*Logger) Warn

func (logger *Logger) Warn(args ...interface{})

Jump to

Keyboard shortcuts

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