Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 SBT/Scala 项目,并且 logback 似乎可以工作,但完全忽略了我的logback.xml配置文件。我已放置在src/main/scala/logback.xml. 它什么也没做。
logback.xml
src/main/scala/logback.xml
它的正确位置是什么?
任何人都可以发布一个带有工作logback.xml文件的 SBT/Scala 骨架项目的示例吗?
把它放在下面src/main/resources/logback.xml。当 SBT 进行工件组装时,它将被复制到正确的位置。
src/main/resources/logback.xml