logging

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package logging provides generic logging facilities for the integrator service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaultLogger added in v0.1.10

func SetDefaultLogger(logger ILogger)

Types

type ILogger added in v0.1.10

type ILogger interface {
	Log(Level, string, m.Map)
	GetMaxLevel() Level
	SetMaxLevel(Level)
}

func GetDefaultLogger added in v0.1.10

func GetDefaultLogger() ILogger

type Level

type Level int
const (
	Panic Level = iota
	Fatal
	Error
	Warn
	Info
	Debug
	Trace
)

type Logger

type Logger struct {
	MaxLevel Level
}

func (*Logger) GetMaxLevel

func (logger *Logger) GetMaxLevel() Level

func (*Logger) Log

func (logger *Logger) Log(lvl Level, txt string, fields m.Map)

func (*Logger) SetMaxLevel

func (logger *Logger) SetMaxLevel(level Level)

Jump to

Keyboard shortcuts

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