simple

package
v0.0.6 Latest Latest
Warning

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

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

Documentation

Overview

Package simple is an implementation of the logi.Logger interface that prints log entries to stdout with level code, compact since startup time.Duration and appends the code location of the call to the logger at the end of the log text.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Simple

type Simple struct {
	Printer logi.Printer
	Level   logi.Level
	Panic   bool
	// contains filtered or unexported fields
}

func NewSimpleLogger

func NewSimpleLogger() (s *Simple)

func (*Simple) Check

func (s *Simple) Check(err error) (errs bool)

func (*Simple) Debug

func (s *Simple) Debug(txt ...interface{})

func (*Simple) Debugc added in v0.0.2

func (s *Simple) Debugc(fn func() string)

func (*Simple) Debugf

func (s *Simple) Debugf(format string, txt ...interface{})

func (*Simple) Debugs

func (s *Simple) Debugs(txt interface{})

func (*Simple) Error

func (s *Simple) Error(txt ...interface{})

func (*Simple) Errorc added in v0.0.2

func (s *Simple) Errorc(fn func() string)

func (*Simple) Errorf

func (s *Simple) Errorf(format string, txt ...interface{})

func (*Simple) Errors

func (s *Simple) Errors(txt interface{})

func (*Simple) Fatal

func (s *Simple) Fatal(txt ...interface{})

func (*Simple) Fatalc added in v0.0.2

func (s *Simple) Fatalc(fn func() string)

func (*Simple) Fatalf

func (s *Simple) Fatalf(format string, txt ...interface{})

func (*Simple) GetSimplePrinter

func (s *Simple) GetSimplePrinter() logi.Printer

func (*Simple) Info

func (s *Simple) Info(txt ...interface{})

func (*Simple) Infoc added in v0.0.2

func (s *Simple) Infoc(fn func() string)

func (*Simple) Infof

func (s *Simple) Infof(format string, txt ...interface{})

func (*Simple) Infos

func (s *Simple) Infos(txt interface{})

func (*Simple) SetLevel

func (s *Simple) SetLevel(level logi.Level)

func (*Simple) SetPrinter

func (s *Simple) SetPrinter(f logi.Printer)

func (*Simple) Trace

func (s *Simple) Trace(txt ...interface{})

func (*Simple) Tracec added in v0.0.2

func (s *Simple) Tracec(fn func() string)

func (*Simple) Tracef

func (s *Simple) Tracef(format string, txt ...interface{})

func (*Simple) Traces

func (s *Simple) Traces(txt interface{})

func (*Simple) Warn

func (s *Simple) Warn(txt ...interface{})

func (*Simple) Warnc added in v0.0.2

func (s *Simple) Warnc(fn func() string)

func (*Simple) Warnf

func (s *Simple) Warnf(format string, txt ...interface{})

func (*Simple) Warns

func (s *Simple) Warns(txt interface{})

Jump to

Keyboard shortcuts

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