Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InferCategoryFromCaller ¶ added in v0.0.7
InferCategoryFromCaller maps source file paths to stable log categories.
func InitLogger ¶
InitLogger initializes the global logger
Types ¶
type AsyncRotateWriter ¶
type AsyncRotateWriter struct {
// contains filtered or unexported fields
}
AsyncRotateWriter implements io.Writer with async, batch, and drop capabilities
func NewAsyncRotateWriter ¶
func NewAsyncRotateWriter(filename string, maxSizeMB int, buffer int) *AsyncRotateWriter
NewAsyncRotateWriter creates a new AsyncRotateWriter
func (*AsyncRotateWriter) Stats ¶
func (w *AsyncRotateWriter) Stats() uint64
Stats returns the number of dropped logs
type LogBroadcaster ¶
type LogBroadcaster struct {
// contains filtered or unexported fields
}
LogBroadcaster handles broadcasting log messages to WebSocket subscribers
func NewLogBroadcaster ¶
func NewLogBroadcaster() *LogBroadcaster
func (*LogBroadcaster) Subscribe ¶
func (b *LogBroadcaster) Subscribe() chan []byte
func (*LogBroadcaster) Unsubscribe ¶
func (b *LogBroadcaster) Unsubscribe(ch chan []byte)
Click to show internal directories.
Click to hide internal directories.