logging

package
v0.0.0-...-ce82533 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package logging is the logger the Goblin binary uses internally.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Printf(string, ...interface{})
}

Logger is an interface representint a logger.

type NilLogger

type NilLogger struct{}

NilLogger is a Logger that does nothing.

func NewNilLogger

func NewNilLogger() *NilLogger

NewNilLogger creates a new nil logger.

func (*NilLogger) Printf

func (l *NilLogger) Printf(format string, args ...interface{})

Printf does nothing.

type PrintfLogger

type PrintfLogger struct{}

PrintfLogger uses fmt.Printf for logging.

func NewPrintfLogger

func NewPrintfLogger() *PrintfLogger

NewPrintfLogger creates a new fmt.Printf logger.

func (*PrintfLogger) Printf

func (l *PrintfLogger) Printf(format string, args ...interface{})

Printf uses fmt.Printf to log messages.

Jump to

Keyboard shortcuts

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