Add Strix camera discovery system with comprehensive database
This commit adds the complete Strix IP camera stream discovery system: - Go-based API server with SSE support for real-time updates - 3,600+ camera brand database with stream URL patterns - Intelligent fuzzy search across camera models - ONVIF discovery and stream validation - RESTful API with health check, camera search, and stream discovery - Makefile for building and deployment - Comprehensive README documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
package logger
|
||||
|
||||
import "log/slog"
|
||||
|
||||
// Adapter wraps slog.Logger to match our interface
|
||||
type Adapter struct {
|
||||
*slog.Logger
|
||||
}
|
||||
|
||||
// NewAdapter creates a new logger adapter
|
||||
func NewAdapter(logger *slog.Logger) *Adapter {
|
||||
return &Adapter{Logger: logger}
|
||||
}
|
||||
|
||||
// Debug logs a debug message
|
||||
func (a *Adapter) Debug(msg string, args ...any) {
|
||||
a.Logger.Debug(msg, args...)
|
||||
}
|
||||
|
||||
// Info logs an info message
|
||||
func (a *Adapter) Info(msg string, args ...any) {
|
||||
a.Logger.Info(msg, args...)
|
||||
}
|
||||
|
||||
// Error logs an error message
|
||||
func (a *Adapter) Error(msg string, err error, args ...any) {
|
||||
allArgs := append([]any{"error", err}, args...)
|
||||
a.Logger.Error(msg, allArgs...)
|
||||
}
|
||||
|
||||
// Warn logs a warning message
|
||||
func (a *Adapter) Warn(msg string, args ...any) {
|
||||
a.Logger.Warn(msg, args...)
|
||||
}
|
||||
Reference in New Issue
Block a user