Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
複数の DB があり、各 DB に独自のログ テーブルがある場合があります。
log4php.xml で DBAppender を使用しているため、データベース名やデータベース ホストを動的に (ラムタイムで) 変更するにはどうすればよいですか。それを行う可能性はありますか?
ありがとう
log4php doc に示すように、XML 構成の代わりに PHP 配列を使用して、実行時に log4php を構成できます。
http://logging.apache.org/log4php/docs/configuration.html