Skip to content

Commit 5f6b295

Browse files
committed
Enhancing logger
1 parent c8aa0ba commit 5f6b295

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

build.gradle.kts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ java {
1717
withSourcesJar()
1818
}
1919

20-
val apiVersion = "0.0.2"
20+
val apiVersion = "0.0.3"
21+
22+
23+
group = "com.softwareplace"
24+
version = apiVersion
2125

2226
publishing {
2327
publications {
@@ -44,17 +48,15 @@ afterEvaluate {
4448
}
4549
}
4650

47-
group = "com.softwareplace"
48-
version = "1.0.0"
49-
5051
dependencies {
5152
implementation("org.jetbrains.kotlin:kotlin-reflect")
5253
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
5354
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.14.0")
5455
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.0")
5556

56-
implementation("org.slf4j:slf4j-api:1.7.30")
57-
implementation("ch.qos.logback:logback-core:1.2.9")
57+
implementation("ch.qos.logback:logback-classic:1.2.11")
58+
implementation("org.apache.logging.log4j:log4j-to-slf4j:2.13.3")
59+
implementation("org.slf4j:jul-to-slf4j:1.7.30")
5860

5961
testImplementation("org.junit.jupiter:junit-jupiter:5.9.0")
6062
testImplementation("org.mockito.kotlin:mockito-kotlin:4.1.0")

src/main/resources/logback.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<configuration>
3+
4+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
5+
<encoder>
6+
<pattern>
7+
%boldMagenta(%d{dd-MM-yyyy HH:mm:ss.SSS}) - [%boldGreen(%thread)] - %highlight(%-5level) %boldMagenta(%logger{36}.%M) - %boldYellow(%msg%n)
8+
</pattern>
9+
</encoder>
10+
</appender>
11+
12+
<root level="info">
13+
<appender-ref ref="STDOUT"/>
14+
</root>
15+
16+
</configuration>

0 commit comments

Comments
 (0)