SimpleLogger

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 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 Fields

type Fields map[string]interface{}

Fields is a map of key-value pairs for additional log information

type SimpleLogger

type SimpleLogger struct {
	// contains filtered or unexported fields
}

func New

func New(logFile string) (*SimpleLogger, error)

New creates a new SimpleLogger instance

func (SimpleLogger) Debug

func (s SimpleLogger) Debug(eid uint32, msg string, fields map[string]interface{})

func (SimpleLogger) Error

func (s SimpleLogger) Error(eid uint32, msg string, fields map[string]interface{})

func (SimpleLogger) Fatal

func (s SimpleLogger) Fatal(eid uint32, msg string, fields map[string]interface{})

func (SimpleLogger) Info

func (s SimpleLogger) Info(eid uint32, msg string, fields map[string]interface{})

func (SimpleLogger) Warning

func (s SimpleLogger) Warning(eid uint32, msg string, fields map[string]interface{})

func (SimpleLogger) WriteLog

func (s SimpleLogger) WriteLog(level string, eid uint32, msg string, fields map[string]interface{})

WriteLog reformats the event and sends to the standard Go logger

Jump to

Keyboard shortcuts

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