저는 Jetty와 핸들 바 템플릿 엔진이 내장 된 스파크 프레임 워크로 자바 애플리케이션을 만들고 있습니다. 하지만 500 개의 내부 오류가 발생하면 콘솔에서 아무 말도하지 않았습니다. 여기 종속성 내 pom.xml 파일에 추가 한 : http://sparkjava.com/documentation.html#add-a-logger 하지만 내 pom.xml 파일 내가 모두 사용할 수 있습니다 어떻게자바 스파크 프레임 워크 로깅
<dependencies>
<!-- FRAMEWORK: Spark -->
<dependency>
<groupId>com.sparkjava</groupId>
<artifactId>spark-core</artifactId>
<version>2.5</version>
</dependency>
<!-- TEMPLATES: Handlebars -->
<dependency>
<groupId>com.sparkjava</groupId>
<artifactId>spark-template-handlebars</artifactId>
<version>2.3</version>
</dependency>
<!-- DB-MAPPING: sql2o -->
<dependency>
<groupId>org.sql2o</groupId>
<artifactId>sql2o</artifactId>
<version>1.5.4</version>
</dependency>
<!-- DRIVERS: sqlite-->
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>3.8.11.2</version>
</dependency>
<!-- LOGGER: slf4j -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.21</version>
</dependency>
</dependencies>
을 dependecies 여기
(오류 500 같은) 모든 예외/오류를 인쇄하지 않습니다 스파크에 대한 로깅?
캡쳐 로그에는 보통 log4j를 구성 할 수 있습니다. – nikhilgupta86