Skip to content

Commit ace0ef4

Browse files
committed
Configures logging levels for production
Sets logging levels to INFO for root and DEBUG for specific packages. This change facilitates more detailed debugging in the production environment, specifically for the application and related Spring components.
1 parent a7870e0 commit ace0ef4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/resources/application-prod.properties

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,10 @@ spring.data.mongodb.host=${MONGO_HOST}
33
spring.data.mongodb.port=${MONGO_PORT}
44
spring.data.mongodb.database=${MONGO_DATABASE}
55
spring.data.mongodb.username=${MONGO_USERNAME}
6-
spring.data.mongodb.password=${MONGO_PASSWORD}
6+
spring.data.mongodb.password=${MONGO_PASSWORD}
7+
8+
# Configuracao de Logs
9+
logging.level.root=INFO
10+
logging.level.com.dmware.api_onibusbh=DEBUG
11+
logging.level.org.springframework.web=DEBUG
12+
logging.level.org.springframework.data.mongodb=DEBUG

0 commit comments

Comments
 (0)