SergiX44 SergiX44 - 4 months ago 54
Java Question

Java spark framework enable logging

I'm building a java application with Spark framework with embedded Jetty and handlebars template engine.
But when i get an 500 Internal Error, the console didn't say anything.
I have added to my pom.xml the dependencies here:
but does not print all exceptions / errors (like errors 500)

Here my pom.xml dependecies


<!-- FRAMEWORK: Spark -->

<!-- TEMPLATES: Handlebars -->

<!-- DB-MAPPING: sql2o -->

<!-- DRIVERS: sqlite-->

<!-- LOGGER: slf4j -->


How i can enable all the logging for spark?


Use log4j to make a logging implementation. That's why you don't have an idea why are you getting an internal server error