logger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileLogger

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

func (*FileLogger) Close

func (l *FileLogger) Close()

func (*FileLogger) Error

func (l *FileLogger) Error(msg string, args ...interface{})

func (*FileLogger) Info

func (l *FileLogger) Info(msg string, args ...interface{})

func (*FileLogger) Warning

func (l *FileLogger) Warning(msg string, args ...interface{})

type Logger

type Logger interface {
	Info(msg string, args ...interface{})
	Warning(msg string, args ...interface{})
	Error(msg string, args ...interface{})
	Close()
}

func NewLogger

func NewLogger(fileName string, logDir string) (Logger, error)

NewLogger creates a new FileLogger. logDir must be provided explicitly (no default fallback).

Jump to

Keyboard shortcuts

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