I am using sbt for an Akka project. I want to redirect the output of the logger. Therefore I'd like to use logback.
What do I have to add to build.sbt
to manage the library dependency for logback?
In a Spring Boot application, you can put the Logback. xml file in the resources folder. If your Logback. xml file is outside the classpath, you need to point to its location using the Logback.
To configure Logback for a Spring Boot project via XML, create the logback. xml or logback-spring. xml file under the src/main/resources folder. The configuration in XML file will override the logging properties in the application.
Add the following to build.sbt
:
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.1.3"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With