logtest

package
v0.0.0-testrgm3 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake struct {
	DebugLogs Logs
	InfoLogs  Logs
	WarnLogs  Logs
	ErrorLogs Logs
}

func (*Fake) Debug

func (f *Fake) Debug(msg string, ctx ...interface{})

func (*Fake) DebugCtx

func (f *Fake) DebugCtx(_ context.Context, msg string, args ...interface{})

func (*Fake) Error

func (f *Fake) Error(msg string, ctx ...interface{})

func (*Fake) FromContext

func (f *Fake) FromContext(_ context.Context) log.Logger

func (*Fake) Info

func (f *Fake) Info(msg string, ctx ...interface{})

func (*Fake) InfoCtx

func (f *Fake) InfoCtx(_ context.Context, msg string, args ...interface{})

func (*Fake) Log

func (f *Fake) Log(keyvals ...interface{}) error

func (*Fake) New

func (f *Fake) New(ctx ...interface{}) *log.ConcreteLogger

func (*Fake) Warn

func (f *Fake) Warn(msg string, ctx ...interface{})

func (*Fake) WarnCtx

func (f *Fake) WarnCtx(_ context.Context, msg string, args ...interface{})

type Logs

type Logs struct {
	Calls   int
	Message string
	Ctx     []interface{}
}

Jump to

Keyboard shortcuts

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