クラス1にlog4jの2つのインスタンスを作成してファイルに書き込み、別のインスタンスをjdbcadapterに作成できますか?
// one to write log in console
Logger log = Logger.getLogger(this.getClass());
// write in database within one class
Logger log1 = Logger.getLogger(this.getClass());
My jdbc adapter is My file adapter is I wan to Logger instance log for File md Logger instant log1 for jdbc.