Documentation ¶
Overview ¶
Package currentlion implements basic integration with Current using plaintext syslog.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMarshaller ¶
func NewMarshaller(options ...MarshallerOption) lion.Marshaller
NewMarshaller returns a new Marshaller that marshals messages into , appropriate to send to an io.Writer that can be tailed by the current cli tool.
Types ¶
type MarshallerOption ¶
type MarshallerOption func(*marshaller)
MarshallerOption is an option for creating Marshallers.
func MarshallerDisableNewlines ¶
func MarshallerDisableNewlines() MarshallerOption
MarshallerDisableNewlines disables newlines after each marshalled Entry.
func MarshallerWithToken ¶
func MarshallerWithToken(token string) MarshallerOption
MarshallerWithToken will add @current:token before every marshalled Entry. This is used for syslog output.
Click to show internal directories.
Click to hide internal directories.