package logger

import (
	"testing"
)

func TestLoggerInitialization(t *testing.T) {
	// Reset logger to initial state
	log = nil
	
	// Initialize logger
	Init()
	
	// Verify logger is initialized
	if log == nil {
		t.Fatal("Logger was not initialized")
	}
}

func TestLoggerInfo(t *testing.T) {
	Init()
	
	// Test Infof
	Infof("Test info message with %s", "format")
	
	// Test Info
	Info("Test info message")
}

func TestLoggerDebug(t *testing.T) {
	Init()
	
	// Test Debugf
	Debugf("Test debug message with %s", "format")
	
	// Test Debug
	Debug("Test debug message")
}

func TestLoggerWarn(t *testing.T) {
	Init()
	
	// Test Warnf
	Warnf("Test warn message with %s", "format")
	
	// Test Warn
	Warn("Test warn message")
}

func TestLoggerError(t *testing.T) {
	Init()
	
	// Test Errorf
	Errorf("Test error message with %s", "format")
	
	// Test Error
	Error("Test error message")
}
