Documentation
¶
Overview ¶
Package logger provides a logging utility for Gophercast.
Index ¶
- type Config
- type LogLevel
- type Logger
- func (l *Logger) ClientConnected(clientID string, clientIP string)
- func (l *Logger) ClientDisconnected(clientID string, reason string)
- func (l *Logger) Close() error
- func (l *Logger) ErrorOccurred(err error, context string)
- func (l *Logger) PlaylistCreated(playlistID string, trackCount int)
- func (l *Logger) ServerStarted(port int)
- func (l *Logger) ServerStopped(reason string)
- func (l *Logger) TrackPlayed(trackID string, clientID string, duration time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Logger wraps slog.Logger with some extra helpers and structured fields.
func (*Logger) ClientConnected ¶
func (*Logger) ClientDisconnected ¶
func (*Logger) ErrorOccurred ¶
func (*Logger) PlaylistCreated ¶
func (*Logger) ServerStarted ¶
func (*Logger) ServerStopped ¶
Click to show internal directories.
Click to hide internal directories.