log

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

package log provides some simple information level print helpers wrapped up in a lightweight struct that can be embedded in other objects

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

func NewLogger

func NewLogger(level int) *Logger

func (*Logger) Info

func (l *Logger) Info(output string)

Print `output` at a normal verbosity level

func (*Logger) Infof

func (l *Logger) Infof(format string, a ...interface{})

Print `output` at a normal verbosity level, formatting the output using the standard formatting codes from `fmt`.

func (*Logger) Warn

func (l *Logger) Warn(output string)

func (*Logger) Warnf

func (l *Logger) Warnf(format string, a ...interface{})

Jump to

Keyboard shortcuts

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