logger

package
v0.0.0-...-cc09eb9 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ILogger

type ILogger interface {
	Printf(format string, v ...interface{})
	Println(v ...interface{})
	Fatalln(v ...interface{})
}

Logger interface

func Get

func Get() ILogger

Getting logger instance

func New

func New(w io.Writer) ILogger

Singleton constructor

type Logger

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

Logger struct

func (Logger) Fatalln

func (l Logger) Fatalln(v ...interface{})

fatalln

func (Logger) Printf

func (l Logger) Printf(format string, v ...interface{})

printf

func (Logger) Println

func (l Logger) Println(v ...interface{})

println

Jump to

Keyboard shortcuts

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