Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogMessage ¶
type LogMessage struct {
Msg string // The actual log message.
}
LogMessage struct represents a single log entry.
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger provides functionality for logging and subscribing to logs.
func NewLogger ¶
func NewLogger() *Logger
NewLogger initializes and returns a new instance of Logger.
func (*Logger) Publish ¶
Publish sends a log message to the log channel. It ensures that log writes are thread-safe using a mutex.
Click to show internal directories.
Click to hide internal directories.