Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify logback as project dependency?

Tags:

logback

sbt

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?

like image 920
tgr Avatar asked May 09 '12 07:05

tgr


People also ask

Where do I put the Logback file?

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.

How do I put Logback xml in Spring Boot?

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.


1 Answers

Add the following to build.sbt:

libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.1.3"
like image 92
tgr Avatar answered Jan 01 '23 15:01

tgr