Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StreamLogger ¶
type StreamLogger struct {
// contains filtered or unexported fields
}
A StreamLogger makes messages sent to it available through HTTP.
func New ¶
func New(name string, size int) *StreamLogger
New returns a new StreamLogger with a buffer that can contain size messages. Any messages sent to it will be available at url.
func (*StreamLogger) Send ¶
func (logger *StreamLogger) Send(message Formatter)
Send sends message to all the writers subscribed to logger. Calling Send does not block.
func (*StreamLogger) ServeHTTP ¶
func (logger *StreamLogger) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*StreamLogger) ServeLogs ¶
func (logger *StreamLogger) ServeLogs(url string)
Handle makes logs sent to logger available throught HTTP at url.
func (*StreamLogger) String ¶
func (logger *StreamLogger) String() string
Click to show internal directories.
Click to hide internal directories.