logger

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Full

type Full interface {
	Warning(arg string)
	Information(arg string)
	Verbose(arg string)
	Debug(arg string)
	Error(arg string)
	Write(arg string)
	Warningln(arg string)
	Informationln(arg string)
	Verboseln(arg string)
	Debugln(arg string)
	Errorln(arg string)
	Writeln(arg string)
}

Full the full logging interface with all functions

func MakeLoggerFull

func MakeLoggerFull(logger interface{}) Full

MakeLoggerFull returns a wrapper class that provides Full semantics, utilizing a simple Simple.write() function

type Simple

type Simple interface {
	Write(arg string)
}

Simple is the simplest logging interface you can have

If this is specified, it will get wrapped into the full interface by prepending the category "Warning: ", "Information: "... and appending a \n for the *ln functions (Writeln,...)

type SimpleFmtPrint

type SimpleFmtPrint struct {
}

SimpleFmtPrint is a Simple logger that calls fmt.Print

func (SimpleFmtPrint) Write

func (SimpleFmtPrint) Write(arg string)

type SimpleFuncPtr

type SimpleFuncPtr struct {
	FuncPtr func(string)
}

SimpleFuncPtr is a Simple logger that allows you to pass in a function pointer for the Write call

func (SimpleFuncPtr) Write

func (holder SimpleFuncPtr) Write(arg string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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