drivers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleLogger

type ConsoleLogger struct{}

ConsoleLogger writes log messages to standard output with timestamps

func NewConsoleLogger

func NewConsoleLogger() *ConsoleLogger

NewConsoleLogger creates a new console logger that outputs to stdout

func (*ConsoleLogger) Debug

func (c *ConsoleLogger) Debug(msg string, kvs ...any)

Debug logs a debug-level message to console

func (*ConsoleLogger) Error

func (c *ConsoleLogger) Error(msg string, kvs ...any)

Error logs an error-level message to console

func (*ConsoleLogger) Fatal

func (c *ConsoleLogger) Fatal(msg string, kvs ...any)

Fatal logs a fatal-level message to console

func (*ConsoleLogger) Info

func (c *ConsoleLogger) Info(msg string, kvs ...any)

Info logs an info-level message to console

func (*ConsoleLogger) Warn

func (c *ConsoleLogger) Warn(msg string, kvs ...any)

Warn logs a warning-level message to console

type FileLogger

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

FileLogger writes log messages to daily rotating files. Thread-safe with automatic date-based file rotation

func NewFileLogger

func NewFileLogger(path string) *FileLogger

NewFileLogger creates a file logger that writes to the specified directory. Log files are named velocity-YYYY-MM-DD.log and rotate daily

func (*FileLogger) Debug

func (f *FileLogger) Debug(msg string, kvs ...any)

Debug logs a debug-level message to file

func (*FileLogger) Error

func (f *FileLogger) Error(msg string, kvs ...any)

Error logs an error-level message to file

func (*FileLogger) Fatal

func (f *FileLogger) Fatal(msg string, kvs ...any)

Fatal logs a fatal-level message to file

func (*FileLogger) Info

func (f *FileLogger) Info(msg string, kvs ...any)

Info logs an info-level message to file

func (*FileLogger) Warn

func (f *FileLogger) Warn(msg string, kvs ...any)

Warn logs a warning-level message to file

Jump to

Keyboard shortcuts

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