logger := lager.NewLogger("example-session")
logger.Debug("debug-message", lager.Data{ "key": "value", })
logger.RegisterSink(lager.NewWriterSink(os.Stdout, lager.DEBUG))In these examples, we see how the Logger Session package is used to create and customize logging sessions. By using this package, developers can easily control how logs are formatted and outputted, while also having the ability to filter certain logs based on criteria such as log level.