logservice

package
v0.0.0-...-50808a6 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: CC0-1.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel int
const (
	LogLevelDebug LogLevel = iota
	LogLevelInfo
	LogLevelWarn
	LogLevelError
)

type Logger

type Logger interface {
	Debug(format string, v ...interface{})
	Info(format string, v ...interface{})
	Warn(format string, v ...interface{})
	Error(format string, v ...interface{})
	SetLevel(level LogLevel)
}

func NewLogService

func NewLogService(idService string) Logger

func NewLogServiceDefault

func NewLogServiceDefault() Logger

type StandardLogger

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

func (*StandardLogger) Debug

func (l *StandardLogger) Debug(format string, v ...interface{})

func (*StandardLogger) Error

func (l *StandardLogger) Error(format string, v ...interface{})

func (*StandardLogger) Info

func (l *StandardLogger) Info(format string, v ...interface{})

func (*StandardLogger) SetLevel

func (l *StandardLogger) SetLevel(level LogLevel)

func (*StandardLogger) Warn

func (l *StandardLogger) Warn(format string, v ...interface{})

Jump to

Keyboard shortcuts

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