log

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: Unlicense Imports: 3 Imported by: 0

Documentation

Overview

Package log implements a minimal logging framework based on stdlib's log.

Index

Constants

This section is empty.

Variables

Std is the standard logger. The default is nil (nothing is logged).

Functions

func NewStd

func NewStd(out io.Writer) *log.Logger

NewStd returns a new logger with standard flags (log.LstdFlags) and no prefix.

func Printf

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

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

func Println

func Println(v ...interface{})

Println calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Println.

Types

This section is empty.

Jump to

Keyboard shortcuts

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