Documentation
¶
Index ¶
- type Worker
- type WorkerDoer
- type Writer
- func (w *Writer) Close()
- func (w *Writer) Feedback(level sparalog.Level, args ...interface{})
- func (w *Writer) FeedbackItem(item sparalog.Item)
- func (w *Writer) Feedbackf(level sparalog.Level, format string, args ...interface{})
- func (w *Writer) ID() sparalog.WriterID
- func (w *Writer) Open() error
- func (w *Writer) SetFeedbackChan(ch chan sparalog.Item)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker implements a queue worker with fixed buffer size.
func NewWorker ¶
func NewWorker(wd WorkerDoer, queueSize int) *Worker
NewWorker returns a new worker for the writer.
type WorkerDoer ¶
WorkerDoer is the interface that the writer should implements.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer implements the base methods.
func (*Writer) Feedback ¶
Feedback generate an item and send it to the level default writer of the logger.
func (*Writer) FeedbackItem ¶
FeedbackItem send an item to the level default writer of ther logger.
func (*Writer) Feedbackf ¶
Feedbackf generate an item and send it to the level default writer of the logger.
func (*Writer) SetFeedbackChan ¶
SetFeedbackChan set a channel to the level default writer of the logger.
Click to show internal directories.
Click to hide internal directories.