logger

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2025 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(format string, v ...interface{})

Debug logs a debug message using the singleton instance

func Error

func Error(format string, v ...interface{})

Error logs an error message using the singleton instance

func Info

func Info(format string, v ...interface{})

Info logs an info message using the singleton instance

func Init

func Init() error

Init initializes the logger

Types

type Logger

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

Logger represents a custom logger for TmuxAI

func GetInstance

func GetInstance() (*Logger, error)

GetInstance returns the singleton logger instance

func (*Logger) Close

func (l *Logger) Close() error

Close closes the logger

func (*Logger) Debug

func (l *Logger) Debug(format string, v ...interface{})

Debug logs a debug message

func (*Logger) Error

func (l *Logger) Error(format string, v ...interface{})

Error logs an error message

func (*Logger) Info

func (l *Logger) Info(format string, v ...interface{})

Info logs an info message

Jump to

Keyboard shortcuts

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