logger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MemberIdToStr

func MemberIdToStr(memberId primitives.MemberId) string

func NewConsoleLogger

func NewConsoleLogger() interfaces.Logger

func NewSilentLogger

func NewSilentLogger() interfaces.Logger

Types

type ConsoleLogger

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

func (*ConsoleLogger) Debug

func (l *ConsoleLogger) Debug(format string, args ...interface{})

func (*ConsoleLogger) Error

func (l *ConsoleLogger) Error(format string, args ...interface{})

func (*ConsoleLogger) Info

func (l *ConsoleLogger) Info(format string, args ...interface{})

type LHLogger

type LHLogger interface {
	Debug(lc *_LC, format string, args ...interface{})
	Info(lc *_LC, format string, args ...interface{})
	Error(lc *_LC, format string, args ...interface{})
	ExternalLogger() interfaces.Logger
}

func NewLhLogger

func NewLhLogger(externalLogger interfaces.Logger) LHLogger

type LogLevel

type LogLevel int
const LEVEL_DEBUG LogLevel = 0
const LEVEL_ERROR LogLevel = 2
const LEVEL_INFO LogLevel = 1

type SilentLogger

type SilentLogger struct {
}

func (*SilentLogger) Debug

func (*SilentLogger) Debug(format string, args ...interface{})

func (*SilentLogger) Error

func (*SilentLogger) Error(format string, args ...interface{})

func (*SilentLogger) Info

func (*SilentLogger) Info(format string, args ...interface{})

Jump to

Keyboard shortcuts

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