logger

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogService

type LogService struct {
	// contains filtered or unexported fields
}

LogService is a sample service to demonstrate logging

func (*LogService) DoLog

func (s *LogService) DoLog(message string)

DoLog does a sample log

func (*LogService) Inject

func (s *LogService) Inject(logger Logger) *LogService

Inject load our dependencies

type Logger

type Logger interface {
	Log(message string)
}

Logger logs a message

Jump to

Keyboard shortcuts

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