Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Creator ¶
type Creator struct {
// contains filtered or unexported fields
}
Creator creates new logetries clients
func NewCreator ¶
NewCreator returns a logger creator that will use the provided token to create a new le driver for each single logger
func NewCreatorWithDriver ¶
NewCreatorWithDriver returns a logger creator that will always use the provider driver
func NewSharedCreator ¶
NewSharedCreator returns a logger creator that will use the provided token to create a new le driver, and will reuse this driver for all logger created
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger represents a logger that sends data to logentries
func NewWithDriver ¶
NewWithDriver creates a new logger using an existing driver, the driver will not be closed when Close() is called
func (*Logger) AddStaticData ¶
AddStaticData is used to add static data to the logs. static data will be added to all logs