Spring Application - какой каркас журналирования используется? - PullRequest
0 голосов
/ 19 марта 2019

У меня есть приложение Spring, которое я унаследовал.

Приложение содержало несколько файлов log4j.properties, но они явно не использовались, так как их изменение не влияло на вывод журнала.Содержимое было тривиальным, поэтому я удалил их (расслабьтесь, у нас есть VCS).

Кажется, что все java-классы используют интерфейс "logger" slf4j, но я знаю, что slf4j - это просто фасад, который вызывает каркас журналирования.,

Я бы хотел настроить каркас ведения журналов, но я не знаю, какой из них используется, поэтому эксперименты по созданию разных конфигурационных файлов в разных местах меня не сильно уволят.

Как определить, какая структура ведения журнала используется этим приложением?

Как определить, какая структура ведения журнала фактически используется?Существует pom.xml, который импортирует Spring MVC, но не Spring Boot.

Практически невозможно гуглить что-либо о входе в Spring без руководства для начинающих по началу работы с Spring Boot, а это не то, что мне нужно.

Сейчас Hibernate, кажется, реагирует наСодержимое файла конфигурации logback присутствует, но, как ни странно, остальная часть ведения журнала из Spring Boot этого не делает.Также наличие / отсутствие файла log4j.xml не влияет.

Список зависимостей здесь.Обратите внимание, я не разработал это, спасибо.Кроме того, я привык запускать дерево зависимостей maven из intellij, но эта опция почему-то отсутствует.

org.springframework.boot:spring-boot:2.1.3.RELEASE
org.springframework:spring-core:5.1.5.RELEASE
org.springframework:spring-jcl:5.1.5.RELEASE
org.springframework:spring-context:5.1.5.RELEASE
org.springframework:spring-aop:5.1.5.RELEASE
org.springframework:spring-beans:5.1.5.RELEASE
org.springframework:spring-core:5.1.5.RELEASE
org.springframework:spring-beans:5.1.5.RELEASE
org.springframework:spring-core:5.1.5.RELEASE
org.springframework:spring-core:5.1.5.RELEASE
org.springframework:spring-expression:5.1.5.RELEASE
org.springframework:spring-core:5.1.5.RELEASE
org.springframework:spring-webmvc:5.1.5.RELEASE
org.springframework:spring-aop:5.1.5.RELEASE
org.springframework:spring-beans:5.1.5.RELEASE
org.springframework:spring-core:5.1.5.RELEASE
org.springframework:spring-beans:5.1.5.RELEASE
org.springframework:spring-core:5.1.5.RELEASE
org.springframework:spring-context:5.1.5.RELEASE
org.springframework:spring-core:5.1.5.RELEASE
org.springframework:spring-expression:5.1.5.RELEASE
org.springframework:spring-core:5.1.5.RELEASE
org.springframework:spring-web:5.1.5.RELEASE
org.springframework:spring-beans:5.1.5.RELEASE
org.springframework:spring-core:5.1.5.RELEASE
org.springframework:spring-jdbc:5.1.5.RELEASE
org.springframework:spring-beans:5.1.5.RELEASE
org.springframework:spring-core:5.1.5.RELEASE
org.springframework:spring-tx:5.1.5.RELEASE
org.springframework:spring-beans:5.1.5.RELEASE
org.springframework:spring-core:5.1.5.RELEASE
org.springframework.security:spring-security-core:3.1.0.RELEASE
aopalliance:aopalliance:1.0
org.springframework:spring-expression:3.0.6.RELEASE
org.springframework:spring-aop:3.0.6.RELEASE
org.springframework:spring-context:3.0.6.RELEASE
org.springframework:spring-beans:3.0.6.RELEASE
org.springframework:spring-core:3.0.6.RELEASE
org.springframework.security:spring-security-crypto:3.1.0.RELEASE
org.springframework:spring-core:5.1.5.RELEASE
org.springframework.security:spring-security-config:3.1.0.RELEASE
org.springframework:spring-context:5.1.5.RELEASE
org.springframework:spring-beans:5.1.5.RELEASE
aopalliance:aopalliance:1.0
org.springframework:spring-aop:5.1.5.RELEASE
org.springframework.security:spring-security-core:3.1.0.RELEASE
aopalliance:aopalliance:1.0
org.springframework:spring-expression:3.0.6.RELEASE
org.springframework:spring-aop:5.1.5.RELEASE
org.springframework:spring-context:5.1.5.RELEASE
org.springframework:spring-beans:5.1.5.RELEASE
org.springframework:spring-core:3.0.6.RELEASE
org.springframework.security:spring-security-crypto:3.1.0.RELEASE
org.springframework:spring-core:5.1.5.RELEASE
org.springframework:spring-core:5.1.5.RELEASE
org.springframework.security:spring-security-taglibs:3.1.0.RELEASE
org.springframework.security:spring-security-web:3.1.0.RELEASE
org.springframework:spring-tx:3.0.6.RELEASE
org.springframework:spring-web:3.0.6.RELEASE
aopalliance:aopalliance:1.0
org.springframework:spring-expression:5.1.5.RELEASE
org.springframework:spring-aop:5.1.5.RELEASE
org.springframework.security:spring-security-core:3.1.0.RELEASE
org.springframework:spring-jdbc:3.0.6.RELEASE
org.springframework:spring-context:5.1.5.RELEASE
org.springframework:spring-beans:5.1.5.RELEASE
org.springframework:spring-core:5.1.5.RELEASE
org.springframework.security:spring-security-acl:3.1.0.RELEASE
org.springframework:spring-tx:5.1.5.RELEASE
aopalliance:aopalliance:1.0
org.springframework:spring-aop:5.1.5.RELEASE
org.springframework.security:spring-security-core:3.1.0.RELEASE
org.springframework:spring-jdbc:5.1.5.RELEASE
org.springframework:spring-context:5.1.5.RELEASE
org.springframework:spring-core:5.1.5.RELEASE
org.springframework:spring-web:5.1.5.RELEASE
org.springframework:spring-expression:5.1.5.RELEASE
org.springframework:spring-aop:5.1.5.RELEASE
org.springframework.security:spring-security-core:3.1.0.RELEASE
org.springframework:spring-beans:5.1.5.RELEASE
org.springframework:spring-context:5.1.5.RELEASE
org.springframework:spring-core:5.1.5.RELEASE
org.springframework:spring-context-support:5.1.5.RELEASE
org.springframework:spring-beans:5.1.5.RELEASE
org.springframework:spring-context:5.1.5.RELEASE
org.springframework:spring-core:5.1.5.RELEASE
javax.persistence:persistence-api:1.0.2
org.aspectj:aspectjrt:1.6.10
javax.inject:javax.inject:1
javax.servlet:servlet-api:2.5
javax.servlet.jsp:jsp-api:2.1
javax.servlet:jstl:1.2
javax.validation:validation-api:1.1.0.Final
org.hibernate:hibernate-validator:5.0.1.Final
javax.validation:validation-api:1.1.0.Final
org.jboss.logging:jboss-logging:3.1.1.GA
com.fasterxml:classmate:0.8.0
org.sitemesh:sitemesh:3.0.0
net.sourceforge.jtds:jtds:1.3.1
commons-dbcp:commons-dbcp:1.4
commons-pool:commons-pool:1.5.4
javax.mail:mail:1.4
javax.activation:activation:1.1
org.codehaus.jackson:jackson-mapper-asl:1.9.10
org.codehaus.jackson:jackson-core-asl:1.9.10
commons-lang:commons-lang:2.6
microsoft:reportingservices:1.0
org.apache.axis:axis:1.4
commons-io:commons-io:2.4
commons-discovery:commons-discovery:0.5
commons-logging:commons-logging:1.1.1
javax.xml:jaxrpc-api:1.1
axis:axis-wsdl4j:1.5.1
com.fasterxml.jackson.core:jackson-databind:2.9.7
com.fasterxml.jackson.core:jackson-annotations:2.9.0
com.fasterxml.jackson.core:jackson-core:2.9.7
com.fasterxml.jackson.core:jackson-core:2.9.7
com.fasterxml.jackson.core:jackson-annotations:2.9.7
org.apache.httpcomponents:httpclient:4.5.6
org.apache.httpcomponents:httpcore:4.4.10
commons-logging:commons-logging:1.2
commons-codec:commons-codec:1.10
junit:junit:4.7
...