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.
RollingFileAppender を使用してログを書き込んでいます。RollingFileAppender のコンストラクターは、アプリケーションが開始されるとすぐに呼び出されます。しかし、アプリケーションの再起動時に発生させたくありません。データベースのフラグを確認する必要があり、特定の値に設定されている場合は、このログのみを開始し、そうでない場合は開始しません。では、そのようなシナリオをどのように処理するのでしょうか?