simple

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package log 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) Error

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

func (*Simple) Fatal

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

func (*Simple) GetSimplePrinter

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

func (*Simple) Info

func (s *Simple) Info(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) Warn

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳