Fork me on GitHub
#graalvm
<
2023-08-02
>
armed10:08:50

Hi, I wonder what can be the reason of this kind of error. It happens after I add

--trace-class-initialization=org.slf4j.impl.StaticLoggerBinder,org.slf4j.LoggerFactory,com.github.fzakaria.slf4j.timbre.TimbreLoggerFactory

borkdude11:08:52

Are you using the absolute newest version of timbre?

armed11:08:43

I don’t think so, will try to update dep and try again

borkdude11:08:17

there have been several fixes for graalvm in timbre. I'm also using timbre in bb

armed11:08:33

Thanks @U04V15CAJ, will try

armed12:08:30

Upgrading timbre didn’t help, but excluding com.fzakaria/slf4j-timbre helped, still don’t understand why native-image fails reporting class initialization. But now I’m ended up with third-party libs which are spitting slf4j logs. But this is another problem to solve