logger

package
v0.0.0-...-0825164 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Instance provides methods to do all the logging in different levels
	Instance = newLogger()
)

Functions

This section is empty.

Types

type ServiceLogger

type ServiceLogger struct {
	Logger *log.Logger
}

ServiceLogger holds the implementation for the logger interface

func (ServiceLogger) Error

func (l ServiceLogger) Error(message string)

Error logs error level messages

func (ServiceLogger) Info

func (l ServiceLogger) Info(message string)

Info logs info level messages

func (ServiceLogger) Warn

func (l ServiceLogger) Warn(message string)

Warn logs warn level messages

Jump to

Keyboard shortcuts

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