Skip to content
New issue

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

zio-logging 2.1.11 does not work with zio 2.0.11 #706

Closed
limpid-kzonix opened this issue Apr 7, 2023 · 3 comments
Closed

zio-logging 2.1.11 does not work with zio 2.0.11 #706

limpid-kzonix opened this issue Apr 7, 2023 · 3 comments

Comments

@limpid-kzonix
Copy link

timestamp=2023-04-07T21:34:21.250661320Z level=ERROR thread=#zio-fiber-0 message="" cause="Exception in thread "zio-fiber-1,0" java.lang.NoSuchMethodError: 'zio.Config zio.Config.nested(scala.Function0)'
	at zio.logging.ConsoleLoggerConfig$.<clinit>(ConsoleLoggerConfig.scala:27)
	at io.kzonix.meeter.MeeterApp$.$init$$$anonfun$1(MeeterApp.scala:16)
	at zio.ZLayer$ZLayerProvideSomeOps$.$greater$greater$greater$extension$$anonfun$2(ZLayer.scala:1843)
	at zio.ZLayer.scope$$anonfun$6$$anonfun$1(ZLayer.scala:406)
	at zio.ZLayer$MemoMap$$anon$41.$anonfun$4$$anonfun$2$$anonfun$1$$anonfun$1$$anonfun$1(ZLayer.scala:1749)"

The example to reproduce

import zio.*
import zio.http.*
import zio.logging.*
import zio.metrics.jvm.DefaultJvmMetrics


object App extends ZIOAppDefault {
  
  override val bootstrap: ZLayer[Any, Any, Any] =
    Runtime.removeDefaultLoggers
      >>> consoleJsonLogger(ConsoleLoggerConfig.default)

  override def run: ZIO[Any, Any, Any] =
    (for {
      _ <- ZIO.logInfo("Hello ZIO")
    } yield ()).provide(
      // ZLayer.Debug.tree,
    )

}

Project deps

      "dev.zio"                    %% "zio"                    % "2.0.11",
      "dev.zio"                    %% "zio-logging"            % "2.1.11",
@limpid-kzonix
Copy link
Author

zio/zio#7965

@justcoon
Copy link
Contributor

justcoon commented Apr 8, 2023

@limpid-kzonix thank your for report

working on new release (#705)

@limpid-kzonix
Copy link
Author

limpid-kzonix commented Apr 9, 2023

🟢 tested zio-logging v2.1.12 with zio v2.0.11. no issues. thanks @justcoon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants