Skip to content

Commit 0d510ef

Browse files
KochTobisven1103
andauthored
Fix logging to account for application.properties (#1046)
* Fix logging to account for application.properties * Move default log path to relative path Co-authored-by: Sven F. <[email protected]> --------- Co-authored-by: KochTobi <[email protected]> Co-authored-by: Sven F. <[email protected]>
1 parent 48f0c76 commit 0d510ef

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

user-interface/src/main/resources/application.properties

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# See https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html for reference
22
################### Logging ###################################################
3-
logging.level.org.atmosphere=warn
3+
logging.level.root=info
4+
logging.level.org.springframework.security=info
5+
logging.level.life.qbic=${DM_LOG_LEVEL:info}
6+
logging.level.life.qbic.datamanager=${DM_LOG_LEVEL:info}
7+
logging.level.life.qbic.projectmanagement.application.authorization.acl=info
8+
logging.file.path=${DM_LOG_PATH:./logs}
49
###############################################################################
510
################### Security ##################################################
611
qbic.security.vault.key.env=DATAMANAGER_VAULT_KEY
@@ -111,7 +116,6 @@ spring.security.oauth2.client.provider.orcid.authorization-uri=${ORCID_AUTHORIZA
111116
spring.security.oauth2.client.provider.orcid.token-uri=${ORCID_TOKEN_URI:https://sandbox.orcid.org/oauth/token}
112117
spring.security.oauth2.client.provider.orcid.user-info-uri=${ORCID_USERINFO_URI:https://sandbox.orcid.org/oauth/userinfo}
113118
spring.security.oauth2.client.provider.orcid.jwk-set-uri=${ORCID_JWK_SET_URI:https://sandbox.orcid.org/oauth/jwks}
114-
#logging.level.org.springframework.security.web=DEBUG
115119
###############################################################################
116120
################### ActiveMQ Artemis ##########################################
117121
# ActiveMQ Artemis is used as a global message broker handling

user-interface/src/main/resources/logback-spring.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<configuration>
33

4-
<property name="LOGS" value="${DM_LOG_PATH:-./logs}"/>
4+
<springProperty scope="context" name="LOGS" source="logging.file.path"/>
5+
<springProperty scope="context" name="LOG_LEVEL_ROOT" source="logging.level.root"/>
56

67
<appender name="Console"
78
class="ch.qos.logback.core.ConsoleAppender">
@@ -29,14 +30,12 @@
2930
</encoder>
3031
</appender>
3132

32-
<!-- LOG everything at INFO level -->
33-
<root level="info">
33+
<root>
3434
<appender-ref ref="RollingFile"/>
3535
<appender-ref ref="Console"/>
3636
</root>
3737

38-
<!-- LOG "life.qbic" at TRACE level -->
39-
<logger name="life.qbic" level="trace" additivity="false">
38+
<logger name="life.qbic" additivity="false">
4039
<appender-ref ref="RollingFile"/>
4140
<appender-ref ref="Console"/>
4241
</logger>

0 commit comments

Comments
 (0)