log

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package log provides a mockable wrapper for log.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) Default

func (*Impl) Default() *log.Logger

func (*Impl) Fatal

func (*Impl) Fatal(v ...any)

func (*Impl) Fatalf

func (*Impl) Fatalf(format string, v ...any)

func (*Impl) Fatalln

func (*Impl) Fatalln(v ...any)

func (*Impl) Flags

func (*Impl) Flags() int

func (*Impl) New

func (*Impl) New(out io.Writer, prefix string, flag int) *log.Logger

func (*Impl) Output

func (*Impl) Output(calldepth int, s string) error

func (*Impl) Panic

func (*Impl) Panic(v ...any)

func (*Impl) Panicf

func (*Impl) Panicf(format string, v ...any)

func (*Impl) Panicln

func (*Impl) Panicln(v ...any)

func (*Impl) Prefix

func (*Impl) Prefix() string

func (*Impl) Print

func (*Impl) Print(v ...any)

func (*Impl) Printf

func (*Impl) Printf(format string, v ...any)

func (*Impl) Println

func (*Impl) Println(v ...any)

func (*Impl) SetFlags

func (*Impl) SetFlags(flag int)

func (*Impl) SetOutput

func (*Impl) SetOutput(w io.Writer)

func (*Impl) SetPrefix

func (*Impl) SetPrefix(prefix string)

func (*Impl) Writer

func (*Impl) Writer() io.Writer

type Interface

type Interface interface {
	Default() *log.Logger
	Fatal(v ...any)
	Fatalf(format string, v ...any)
	Fatalln(v ...any)
	Flags() int
	New(out io.Writer, prefix string, flag int) *log.Logger
	Output(calldepth int, s string) error
	Panic(v ...any)
	Panicf(format string, v ...any)
	Panicln(v ...any)
	Prefix() string
	Print(v ...any)
	Printf(format string, v ...any)
	Println(v ...any)
	SetFlags(flag int)
	SetOutput(w io.Writer)
	SetPrefix(prefix string)
	Writer() io.Writer
}

Directories

Path Synopsis
Package syslog provides a mockable wrapper for log/syslog.
Package syslog provides a mockable wrapper for log/syslog.

Jump to

Keyboard shortcuts

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