Documentation ¶
Overview ¶
Package log provides a mockable wrapper for log.
Index ¶
- type Impl
- func (*Impl) Default() *log.Logger
- func (*Impl) Fatal(v ...any)
- func (*Impl) Fatalf(format string, v ...any)
- func (*Impl) Fatalln(v ...any)
- func (*Impl) Flags() int
- func (*Impl) New(out io.Writer, prefix string, flag int) *log.Logger
- func (*Impl) Output(calldepth int, s string) error
- func (*Impl) Panic(v ...any)
- func (*Impl) Panicf(format string, v ...any)
- func (*Impl) Panicln(v ...any)
- func (*Impl) Prefix() string
- func (*Impl) Print(v ...any)
- func (*Impl) Printf(format string, v ...any)
- func (*Impl) Println(v ...any)
- func (*Impl) SetFlags(flag int)
- func (*Impl) SetOutput(w io.Writer)
- func (*Impl) SetPrefix(prefix string)
- func (*Impl) Writer() io.Writer
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 }
Click to show internal directories.
Click to hide internal directories.