logger

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 3 Imported by: 11

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 {
	GetInfoWriter() io.Writer
	GetWarnWriter() io.Writer
	GetErroWriter() 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