楽落人の備忘録

楽して生きていきたい。知識とか覚えておきたくない。

junitログ メモ

メモ

jul-to-slf4j

junitのログをslf4jで出力するために必要?

 

logback.xmlに以下の追記も必要?

 

    <contextListener
    <contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator">
    <resetJUL>true</resetJUL>
    </contextListener>

 

 

pomに以下も必要?

<dependency> 
    <groupId>org.slf4j</groupId> 
    <artifactId>jul-to-slf4j</artifactId> 
    <version>${slf4j.version}</version> 
    <scope>runtime</scope> 
</dependency>

 

 ただ単純にslf4jのアノテーション入れただけでできた。
上記は不要かもしれない。

精査と検証が必要。