logger

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 3 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 types.LogLevel

Some Constants - used with LogLevel

type LogObject

type LogObject types.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 types.LogType
var (
	FuncMaintenanceType LogType = LogType(types.NewLogType(types.FuncMaintenanceType.String()))
	DebugType           LogType = LogType(types.NewLogType(types.DebugType.String()))
)

Jump to

Keyboard shortcuts

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