728x90
๋ฐ์ํ
SLF4J ๊ด๋ จํ์ฌ ์ฐพ์ ์ ์๋ค๋ ์๋ฌ์ logger๋ฅผ ๊ฐ์ ธ์ฌ ์ ์๋ค๋ ์๋ฌ
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>2.0.9</version>
<scope>runtime</scope>
</dependency>
pom.xml ํ์ผ์ ์ถ๊ฐํด์ฃผ๋ฉด ๋๋ค.
Logging์ด๋
ํ๋ก๊ทธ๋จ ๊ฐ๋ฐ ์ค์ด๋ ์๋ฃ ํ ๋ฐ์ํ ์ ์๋ ์ค๋ฅ์ ๋ํด ๋๋ฒ๊น ํ๊ฑฐ๋ ์ด์ ์ค์ธ ํ๋ก๊ทธ๋จ ์ํ๋ฅผ ๋ชจ๋ํฐ๋ง ํ๊ธฐ ์ํด ํ์ํ ์ ๋ณด(๋ก๊ทธ)๋ฅผ ๊ธฐ๋กํ๋ ๊ฒ
SLF4J(Simple Logging Facade for Java)๋
Log4J ๋๋ Logback๊ณผ ๊ฐ์ ๋ฐฑ์๋ Logging Framework์ facade pattern
https://coderanch.com/t/777120/java/SLF-SLF-providers
https://www.slf4j.org/manual.html
https://gmlwjd9405.github.io/2019/01/04/logging-with-slf4j.html#google_vignette
https://gmlwjd9405.github.io/2019/01/04/logging-with-slf4j.html#google_vignette
๋ฐ์ํ