lookbook/vendor/github.com/pressly/goose/v3/log.go
soup fc625fb9cf
Initial lookbook implementation
Pinterest-style visual bookmarking app with:
- URL metadata extraction (OG/Twitter meta, oEmbed fallback)
- Image caching in Postgres with 480px thumbnails
- Multi-tag filtering with Ctrl/Cmd for OR mode
- Fuzzy tag suggestions and inline tag editing
- Browser console auth() with first-use password setup
- Brutalist UI with Commit Mono font and Pico CSS
- Light/dark mode via browser preference
2026-01-16 21:14:23 -05:00

36 lines
874 B
Go

package goose
import (
std "log"
)
var log Logger = &stdLogger{}
// Logger is standard logger interface
type Logger interface {
Fatalf(format string, v ...interface{})
Printf(format string, v ...interface{})
}
// SetLogger sets the logger for package output
func SetLogger(l Logger) {
log = l
}
// stdLogger is a default logger that outputs to a stdlib's log.std logger.
type stdLogger struct{}
func (*stdLogger) Fatalf(format string, v ...interface{}) { std.Fatalf(format, v...) }
func (*stdLogger) Printf(format string, v ...interface{}) { std.Printf(format, v...) }
// NopLogger returns a logger that discards all logged output.
func NopLogger() Logger {
return &nopLogger{}
}
type nopLogger struct{}
var _ Logger = (*nopLogger)(nil)
func (*nopLogger) Fatalf(format string, v ...interface{}) {}
func (*nopLogger) Printf(format string, v ...interface{}) {}