How to add Google Cloud Logging for Kubernetes to a Scala ZIO2 Application
This is based on the google logback appender docs: https://cloud.google.com/logging/docs/setup/java
- Add the google-cloud-logging-logback to your sbt file see example.
- If you don't already have the slf4j and zio logging libs add those as well.
- Add the logback.xml appender below this has been scoped for k8s_container.
- If you haven't use the slf4j appender ZLayer in your main application see the example for a ZIOAppDefault app below.