クラス SpringBootConfigurationFactory
java.lang.ObjectSE
org.apache.logging.log4j.core.config.builder.api.ConfigurationBuilderFactory
org.apache.logging.log4j.core.config.ConfigurationFactory
org.springframework.boot.logging.log4j2.SpringBootConfigurationFactory
@Plugin(name="SpringBootConfigurationFactory",
category="ConfigurationFactory")
public class SpringBootConfigurationFactory
extends org.apache.logging.log4j.core.config.ConfigurationFactory
Log4J2 のデフォルト構成を次のようにカスタマイズする Spring Boot
ConfigurationFactory
:- アプリケーションの初回起動時にロガー警告が出力されないようにします。
log4j2.springboot
クラスパスリソース(この jar にバンドルされている)によってトリガーされます。Log4J2LoggingSystem
がアクティブな場合、システムが後で正しい構成ファイルを使用して Log4J2 を再初期化することを期待して、DefaultConfiguration
が返されます。- 導入:
- 1.5.0
- 作成者:
- Phillip Webb
フィールドのサマリー
クラス org.apache.logging.log4j.core.config.ConfigurationFactory から継承されたフィールド
AUTHORIZATION_PROVIDER, CATEGORY, CONFIGURATION_FACTORY_PROPERTY, CONFIGURATION_FILE_PROPERTY, DEFAULT_PREFIX, LOG4J1_CONFIGURATION_FILE_PROPERTY, LOG4J1_EXPERIMENTAL, LOG4J1_VERSION, LOG4J2_VERSION, LOGGER, substitutor, TEST_PREFIX
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明org.apache.logging.log4j.core.config.Configuration
getConfiguration
(org.apache.logging.log4j.core.LoggerContext loggerContext, org.apache.logging.log4j.core.config.ConfigurationSource source) protected StringSE[]
クラス org.apache.logging.log4j.core.config.ConfigurationFactory から継承されたメソッド
authorizationProvider, getAuthorizationProvider, getConfiguration, getConfiguration, getDefaultPrefix, getInputFromString, getInstance, getTestPrefix, getVersion, isActive, removeConfigurationFactory, resetConfigurationFactory, setConfigurationFactory
クラス org.apache.logging.log4j.core.config.builder.api.ConfigurationBuilderFactory から継承されたメソッド
newConfigurationBuilder, newConfigurationBuilder
コンストラクターの詳細
SpringBootConfigurationFactory
public SpringBootConfigurationFactory()
メソッドの詳細
getSupportedTypes
- 次で指定:
- クラス
org.apache.logging.log4j.core.config.ConfigurationFactory
のgetSupportedTypes
getConfiguration
public org.apache.logging.log4j.core.config.Configuration getConfiguration(org.apache.logging.log4j.core.LoggerContext loggerContext, org.apache.logging.log4j.core.config.ConfigurationSource source) - 次で指定:
- クラス
org.apache.logging.log4j.core.config.ConfigurationFactory
のgetConfiguration