log

package
v0.0.0-...-6fc1cce Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

FMT Logger - a very simplistic implementation for logger - everything is printed through fmt - stores history with sensitive data scrubbing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FmtLogger

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

func (FmtLogger) Debug

func (l FmtLogger) Debug(args ...interface{})

func (FmtLogger) Debugf

func (l FmtLogger) Debugf(fmtString string, args ...interface{})

func (FmtLogger) Error

func (l FmtLogger) Error(args ...interface{})

func (FmtLogger) Errorf

func (l FmtLogger) Errorf(fmtString string, args ...interface{})

func (FmtLogger) History

func (l FmtLogger) History() []string

func (FmtLogger) Info

func (l FmtLogger) Info(args ...interface{})

func (FmtLogger) Infof

func (l FmtLogger) Infof(fmtString string, args ...interface{})

func (FmtLogger) SetDebug

func (l FmtLogger) SetDebug(enable bool)

func (FmtLogger) SetErrWriter

func (l FmtLogger) SetErrWriter(err io.Writer)

func (FmtLogger) SetOutWriter

func (l FmtLogger) SetOutWriter(out io.Writer)

func (FmtLogger) Warn

func (l FmtLogger) Warn(args ...interface{})

func (FmtLogger) Warnf

func (l FmtLogger) Warnf(fmtString string, args ...interface{})

type Logger

type Logger interface {
	SetDebug(debug bool)

	SetOutWriter(io.Writer)
	SetErrWriter(io.Writer)

	Debug(args ...interface{})
	Debugf(fmtString string, args ...interface{})

	Error(args ...interface{})
	Errorf(fmtString string, args ...interface{})

	Info(args ...interface{})
	Infof(fmtString string, args ...interface{})

	Warn(args ...interface{})
	Warnf(fmtString string, args ...interface{})

	History() []string
}

Jump to

Keyboard shortcuts

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