Skip to content

Commit d56ae05

Browse files
committed
Feature: Adding logging parameters in properties file
1 parent a4f4f80 commit d56ae05

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/main/resources/application.properties

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,16 @@ spring.datasource.password = callicoder
1010
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect
1111

1212
# Hibernate ddl auto (create, create-drop, validate, update)
13-
spring.jpa.hibernate.ddl-auto = update
13+
spring.jpa.hibernate.ddl-auto = update
14+
15+
# Loggers and Levels
16+
logging.level.root=INFO
17+
logging.level.org.springframework.web=DEBUG
18+
logging.level.org.hibernate=WARN
19+
logging.level.org.hibernate.SQL=DEBUG
20+
logging.level.org.hibernate.exception=ERROR
21+
22+
# File Logging Configuration
23+
logging.file.path=logs/
24+
logging.file.name=application.log
25+
logging.file.max-size=10MB

0 commit comments

Comments
 (0)