[ 
https://issues.apache.org/jira/browse/LOG4J2-3524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17765045#comment-17765045
 ] 

Florian Schmaus commented on LOG4J2-3524:
-----------------------------------------

Thanks. That is unfortunate. I could probably use scala-logging, even though it 
targets SLF4J and my setup uses LOG4J as primary logging facility.

In any case. I've made a PR which the changes required to make the log4j-scala 
Scala 3 macros work for me: 
https://github.com/apache/logging-log4j-scala/pull/26

It is possible to simply cope the code (from the PR) under src/main/scala-3 
into your project to make use of it.

But ideally someone finds the time to review them, merge them, and publish a 
new release of log4j-scala.

> support scala 3.0
> -----------------
>
>                 Key: LOG4J2-3524
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3524
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Scala API
>    Affects Versions: Scala 12.1
>            Reporter: PJ Fanning
>            Priority: Major
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> This commit - 
> [https://github.com/apache/logging-log4j-scala/commit/63584bb16ec735fb162abf22db977b2832418e62]
>  - will mean that log4j-scala will only support Scala 3.1.x and not Scala 
> 3.0.x.
> See [https://www.scala-lang.org/blog/2022/02/01/scala-3.1.1-released.html]
> ```
> Scala 3 has excellent backward compatibility guarantees between the minor 
> versions. Right now, that means that code compiled with Scala 3.1 can depend 
> on libraries published with 3.0 without any problems. The opposite, hovewer, 
> is not true. Code compiled with 3.0 is not able to read dependencies compiled 
> with 3.1. After the recent release of Scala 3.1.0, we can see that libraries 
> should be really cautious with updating the compiler version, as it forces a 
> bump on every user of that library.
> ```
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to