# README
loggregatorlib/emitter
This library is now DEPRECATED. Please use github.com/cloudfoundry/dropsonde/emitter/logemitter for new code.
This is a GO library to emit messages to the loggregator.
Create an emitter with NewLogMessageEmitter with the loggregator trafficcontroller hostname and port, a source name, the loggregator shared secret, and a gosteno logger.
Call Emit on the emitter with the application GUID and message strings.
A valid source name is any 3 character string. Some common component sources are:
API (Cloud Controller)
RTR (Go Router)
UAA
DEA
APP (Warden container)
LGR (Loggregator)
###Sample Workflow
import "github.com/cloudfoundry/loggregatorlib/emitter"
func main() {
appGuid := "a8977cb6-3365-4be1-907e-0c878b3a4c6b" // The GUID(UUID) for the user's application
emitter, err := emitter.NewLogMessageEmitter("10.10.10.16:38452", "RTR", "shared secret", gosteno.NewLogger("LoggregatorEmitter"))
emitter.Emit(appGuid, message)
}
# Packages
No description provided by the author
This file was generated by counterfeiter.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
# Interfaces
No description provided by the author