logger

package
v1.99.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package logger is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(ctx context.Context, format string, args ...interface{})

Debug is a wrapper of logger Debug method

func Error

func Error(ctx context.Context, format string, args ...interface{})

Error is a wrapper of logger Error method

func Info

func Info(ctx context.Context, format string, args ...interface{})

Info is a wrapper of logger Info method

func SetLogger

func SetLogger(customLogger Logger)

SetLogger initializes custom logger for gobrick

Types

type DummyLogger

type DummyLogger struct{}

DummyLogger for testing purposes

func (*DummyLogger) Debug

func (dl *DummyLogger) Debug(_ context.Context, format string, args ...interface{})

Debug is a dummy implementation of logger Debug method

func (*DummyLogger) Error

func (dl *DummyLogger) Error(_ context.Context, format string, args ...interface{})

Error is a dummy implementation of logger Error method

func (*DummyLogger) Info

func (dl *DummyLogger) Info(_ context.Context, format string, args ...interface{})

Info is a dummy implementation of logger Info method

type Logger

type Logger interface {
	Info(ctx context.Context, format string, args ...interface{})
	Debug(ctx context.Context, format string, args ...interface{})
	Error(ctx context.Context, format string, args ...interface{})
}

Logger logging interface for gobrick

Jump to

Keyboard shortcuts

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