import ( "code.cloudfoundry.org/lager" ) func main() { logger := lager.NewLogger("my-app") logger.Info("starting app") }
import ( "code.cloudfoundry.org/lager" ) func main() { logger := lager.NewLogger("my-app") message := "starting app" data := lager.Data{"env": "prod"} logger.Info(message, data) }The code above shows how to pass data to the Info log message by creating a `Data` structure with key-value pairs and including it as the second argument in the `Info` function. The package library for the Logger Info is `code.cloudfoundry.org/lager`.