TjarkoG opened a new issue, #1538:
URL: https://github.com/apache/pekko/issues/1538

   when migrating from scala `2.13.14` to scala `3.3.0` we're running into an 
error with the LoggingAdapter. 
   The setup:
   ```scala
   package com.example
   
   import org.apache.pekko.actor.ActorSystem
   import org.apache.pekko.event.{Logging, LogSource, LoggingAdapter}
   
   
   class Foo(actorSystem: ActorSystem) {
     val bar: LoggingAdapter = Logging(actorSystem, getClass)
   }
   ```
   does compile with scala `2.13.14` but with scala `3.3.0` it runs into the 
following Error:
   ```
   Cannot find LogSource for Class[? <: com.example.Foo] please see ScalaDoc 
for LogSource for how to obtain or construct one..
   I found:
   
       org.apache.pekko.event.LogSource.fromAnyClass[T]
   
   But method fromAnyClass in object LogSource does not match type 
org.apache.pekko.event.LogSource[Class[? <: com.example.Foo]].
     val bar: LoggingAdapter = Logging(actorSystem, getClass)
    ```
    
    pekko version used is `1.1.2`
    
    if this is not a bug and only an error on my side im sorry but i have not 
found anything on this topic in the docs
    


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org
For additional commands, e-mail: notifications-h...@pekko.apache.org

Reply via email to