logger

package
v0.0.0-...-f0f63f4 Latest Latest
Warning

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

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

Documentation

Overview

Package logger standardizes the logging functions available to your team.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ILog

type ILog interface {
	Fatalf(format string, v ...interface{})
	Printf(format string, v ...interface{})
}

ILog provides logging capabilities.

type Logger

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

Logger will output to a writer.

func New

func New(i ILog) *Logger

New returns a new instance of a logger.

func (*Logger) Fatalf

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

Fatalf is equivalent to l.Printf() followed by a call to os.Exit(1).

func (*Logger) Printf

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

Printf calls l.Output to print to the logger. Arguments are handled in the manner of fmt.Printf.

Jump to

Keyboard shortcuts

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