2

I have just started using Spark framework. And experimenting with a local server on Mac OS

The documentation says that to enable debug logs I simply need to add a dependency. I've added a dependency and can observe logs in the console.

The question is where the log files are located?

k_shil
  • 2,108
  • 1
  • 20
  • 25

1 Answers1

1

If you are following the Spark example here, you are only enabling slf4j-simple logging. By default, this only logs items to the console. You can change this programmatically (Class information here) or by adding a properties file to the classpath, as seen in this discussion. Beyond this you will likely want to implement a logging framework like log4j or logback, as slf4j is designed to act as a facade over an existing logging implementation.

Community
  • 1
  • 1
Steps
  • 481
  • 5
  • 9