We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scala 3 enum logged as {}
import zio.* import tofu.logging.zlogs.{TofuZLogger, ZLogAnnotation} import tofu.logging.derivation.loggable.autoDerived object ExampleApp extends ZIOAppDefault { override val bootstrap = Runtime.removeDefaultLoggers >>> TofuZLogger.addToRuntime >>> ZLayer(ZIO.logInfo("scala 3")) enum Example: case Foo, Bar case class MyLog(message: String, enum3: Example) val zla: ZLogAnnotation[MyLog] = ZLogAnnotation.make[MyLog]("myLog") override def run = ZIO.logInfo("test") @@ zla(MyLog("test", Example.Bar)) }
{"message":"test","myLog":{"message":"test","enum3":{}}}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Scala 3 enum logged as {}
{"message":"test","myLog":{"message":"test","enum3":{}}}
The text was updated successfully, but these errors were encountered: