Scala记录错误,未找到com.typesafe.scalalogging.LazyLogging.$ init $方法 [英] Scala logging error, com.typesafe.scalalogging.LazyLogging.$init$ method not found

查看:507
本文介绍了Scala记录错误,未找到com.typesafe.scalalogging.LazyLogging.$ init $方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了包括scala日志记录依赖项在内的多种组合,但是由于找不到方法init,我遇到了运行时错误.

Hi I tried multiple combinations of including dependencies of scala logging, however I'm getting runtime error as method init not found.

有关我遇到的详细代码和错误,请在这里在我的Github存储库中.

For detailed code and error I'm getting, please have a look here at my Github repository.

PS:我确实知道那里存在类似的线程,但是所有这些解决方案在我看来都不起作用,因此必须使用详细的代码和错误消息创建这个单独的线程.

PS: I do know there are exisiting similar threads there but all those solutions seems to be not working in my case, so had to create this seperate thread with detailed code and error message.

任何帮助将不胜感激. 预先感谢.

Any help will be highly appreciated. Thanks in advance.

推荐答案

您的导入错误.应该是

import com.typesafe.scalalogging.LazyLogging 

不是

import com.typesafe.scalalogging.slf4j.LazyLogging

这篇关于Scala记录错误,未找到com.typesafe.scalalogging.LazyLogging.$ init $方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆