2016-05-27 6 views

答えて

0

あなたのcustomNameプロパティを追加するLoggerContext#putPropertyを使用します。

import org.slf4j.LoggerFactory; 
import ch.qos.logback.classic.LoggerContext; 
... 
LoggerContext context = (LoggerContext)LoggerFactory.getILoggerFactory(); 
context.putProperty("customName", "foo"); 
関連する問題