Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNsqAdapter ¶
func NewNsqAdapter(route *router.Route) (router.LogAdapter, error)
NewNsqAdapter custom logspout module
Types ¶
type Data ¶
type Data struct { ParentCtx string `json:"parent_ctx_id"` // TODO: this should not be here Service string `json:"service"` Environment string `json:"environment,omitempty"` DockerName string `json:"dockername"` HostName string `json:"hostname"` Timestamp string `json:"timestamp"` Severity string `json:"severity"` Application string `json:"application"` CallerLine string `json:"caller_line,omitempty"` CallerFile string `json:"caller_file,omitempty"` Message string `json:"msg"` }
Data struct, part of the Log message
type NsqAdapter ¶
type NsqAdapter struct {
// contains filtered or unexported fields
}
NsqAdapter struct
func (*NsqAdapter) Stream ¶
func (a *NsqAdapter) Stream(logstream chan *router.Message)
Stream will handle the logging messages
Click to show internal directories.
Click to hide internal directories.