logger

package
v0.0.0-...-24cf382 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogError

type LogError logger.Error

func Close

func Close() *LogError

Close - it closes logger channel

func Log

func Log(object *LogObject) *LogError

Log - write log object to the channel

func Sync

func Sync() *LogError

Sync - sync all logs to medium

type LogLevel

type LogLevel logger.LogLevel

Some Constants - used with LogLevel

type LogObject

type LogObject logger.LogObject

func NewLogObject

func NewLogObject(level LogLevel, module string, logType LogType, eventTime time.Time, message interface{}, additional interface{}) *LogObject

NewLogObject - enhance method to create and return reference of LogObject

type LogType

type LogType logger.LogType
var (
	FuncMaintenanceType LogType = LogType(logger.NewLogType(logger.FuncMaintenanceType.String()))
	DebugType           LogType = LogType(logger.NewLogType(logger.DebugType.String()))
)

Jump to

Keyboard shortcuts

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