added logging

This commit is contained in:
hirst 2024-06-01 20:14:18 +02:00
parent 92fed1e3ca
commit 54a4b06b20
6 changed files with 37 additions and 5 deletions

7
.gitignore vendored
View file

@ -1,2 +1,9 @@
result/*
result
### LOGS ###
**logs/
**logs/*.log
**logs/*.gz
*.log

8
.idea/modules.xml Normal file
View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/server.iml" filepath="$PROJECT_DIR$/server.iml" />
</modules>
</component>
</project>

View file

@ -12,8 +12,6 @@ spring:
password: admin
springdoc:
enable-native-support: true
api-docs:
enabled: true
path: /api/v1/dummy/v3/api-docs
@ -32,3 +30,7 @@ eureka:
#defaultZone: http://localhost:8761/eureka
# Will only work when docker is used
defaultZone: http://eureka-server:8761/eureka
logging:
file:
name: ././logs/dummy.log

View file

@ -16,3 +16,7 @@ spring:
user:
name: admin
password: admin
logging:
file:
name: ././logs/eureka.log

View file

@ -57,7 +57,6 @@ management:
enabled: true
springdoc:
enable-native-support: true
api-docs:
enabled: true
groups:
@ -77,3 +76,7 @@ eureka:
#defaultZone: http://localhost:8761/eureka
# Will only work when docker is used
defaultZone: http://eureka-server:8761/eureka
logging:
file:
name: ././logs/gateway.log

8
server.iml Normal file
View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module version="4">
<component name="AdditionalModuleElements">
<content url="file://$MODULE_DIR$" dumb="true">
<excludeFolder url="file://$MODULE_DIR$/logs" />
</content>
</component>
</module>