diff --git a/server/build.gradle.kts b/server/build.gradle.kts index 318ca77..e17c268 100644 --- a/server/build.gradle.kts +++ b/server/build.gradle.kts @@ -23,14 +23,23 @@ repositories { mavenCentral() } + + dependencies { implementation ("org.springframework.boot:spring-boot-starter-data-jpa") // implementation ("org.springframework.boot:spring-boot-starter-security") implementation ("org.springframework.boot:spring-boot-starter-validation") implementation ("org.springframework.boot:spring-boot-starter-web") implementation("org.springframework.boot:spring-boot-starter-actuator") - implementation ("com.github.ulisesbocchio:jasypt-spring-boot-starter:3.0.4") + implementation ("org.springframework.boot:spring-boot-starter-log4j2") + implementation ("com.lmax:disruptor:3.4.2") + + modules { + module("org.springframework.boot:spring-boot-starter-logging") { + replacedBy("org.springframework.boot:spring-boot-starter-log4j2", "Use Log4j2 instead of Logback") + } + } compileOnly ("org.projectlombok:lombok") runtimeOnly ("mysql:mysql-connector-java") diff --git a/server/src/main/resources/log4j2.xml b/server/src/main/resources/log4j2.xml new file mode 100644 index 0000000..41eb937 --- /dev/null +++ b/server/src/main/resources/log4j2.xml @@ -0,0 +1,38 @@ + + + + + ./logs/log + %d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +