logger

package
v1.6.11 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package logger allows you to use different levels of logging - errors, warnings, information.

The output of each individual logging type can be configured to its own file. The logging format is carried out by means of the transmitted function.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ILogArg added in v1.5.19

type ILogArg interface{}

type ILogFunc added in v1.5.19

type ILogFunc func(ILogArg) string

type ILogger

type ILogger interface {
	GetSettings() ISettings

	PushInfo(ILogArg)
	PushWarn(ILogArg)
	PushErro(ILogArg)
}

func NewLogger

func NewLogger(pSett ISettings, pLogFunc ILogFunc) ILogger

type ISettings

type ISettings interface {
	GetOutInfo() io.Writer
	GetOutWarn() io.Writer
	GetOutErro() io.Writer
}

func NewSettings

func NewSettings(pSett *SSettings) ISettings

type SSettings

type SSettings sSettings

Jump to

Keyboard shortcuts

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