Skip to content

Commit bafa3d0

Browse files
authored
Add logging file output configuration to application.properties (#244)
Configure logging to output to a specific file (/var/log/psama.log) following Spring Boot's guidelines. Additional logging files should also be placed in the /var/log/ directory as noted in the comments. This change ensures better logging management and adherence to standard practices.
1 parent 126f7db commit bafa3d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pic-sure-auth-services/src/main/resources/application.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ logging.level.edu.harvard.hms.dbmi.avillach.auth.service.impl.authentication.FEN
2828
logging.level.edu.harvard.hms.dbmi.avillach.auth.service.impl.AccessRuleService=${LOGGING_LEVEL_ACCESS_RULE_SERVICE:INFO}
2929
logging.level.org.springframework.cache=${LOGGING_LEVEL_CACHE:INFO}
3030

31+
# Logging File Output https://docs.spring.io/spring-boot/reference/features/logging.html#features.logging.file-output
32+
# If you are adding additional log files please add them to /var/log/ directory.
33+
logging.file.name=/var/log/psama.log
34+
3135
# Cache Controller Configuration. This is used to gain insight into the cache.
3236
# This should never be enabled in production.
3337
app.cache.inspect.enabled=${CACHE_INSPECT_ENABLED:false}

0 commit comments

Comments
 (0)