クラス LoggingSystemProperties

java.lang.ObjectSE
org.springframework.boot.logging.LoggingSystemProperties
既知の直属サブクラス
LogbackLoggingSystemProperties

public class LoggingSystemProperties extends ObjectSE
後でログ構成ファイルで使用できるシステムプロパティを設定するユーティリティ。
導入:
2.0.0
作成者:
Andy Wilkinson, Phillip Webb, Madhura Bhave, Vedran Pavic, Robert Thornton, Edd ú Mel é ndez, Jonatan Ivanov
関連事項:
  • コンストラクターの詳細

    • LoggingSystemProperties

      public LoggingSystemProperties(Environment environment)
      新しい LoggingSystemProperties インスタンスを作成します。
      パラメーター:
      environment - ソース環境
    • LoggingSystemProperties

      public LoggingSystemProperties(Environment environment, @Nullable BiConsumerSE<StringSE, @Nullable StringSE> setter)
      新しい LoggingSystemProperties インスタンスを作成します。
      パラメーター:
      environment - ソース環境
      setter - プロパティを適用するために使用される setter、またはシステムプロパティに使用される null 
      導入:
      2.4.2
    • LoggingSystemProperties

      public LoggingSystemProperties(Environment environment, @Nullable FunctionSE<@Nullable StringSE, @Nullable StringSE> defaultValueResolver, @Nullable BiConsumerSE<StringSE, @Nullable StringSE> setter)
      新しい LoggingSystemProperties インスタンスを作成します。
      パラメーター:
      environment - ソース環境
      defaultValueResolver - デフォルト値または null を解決するために使用される関数
      setter - プロパティを適用するために使用される setter、またはシステムプロパティに使用される null 
      導入:
      3.2.0
  • メソッドの詳細

    • getConsole

      protected @Nullable ConsoleSE getConsole()
      使用する ConsoleSE を返します。
      戻り値:
      使用する ConsoleSE
      導入:
      3.5.0
    • apply

      public final void apply()
    • apply

      public final void apply(@Nullable LogFile logFile)
    • apply

      protected void apply(@Nullable LogFile logFile, PropertyResolver resolver)
    • getDefaultConsoleCharset

      protected CharsetSE getDefaultConsoleCharset()
      デフォルトのコンソール文字セットを返します。
      戻り値:
      デフォルトのコンソール文字セット
      導入:
      3.5.0
    • getDefaultFileCharset

      protected CharsetSE getDefaultFileCharset()
      デフォルトのファイル文字セットを返します。
      戻り値:
      デフォルトのファイル文字セット
      導入:
      3.5.0
    • setSystemProperty

      protected final void setSystemProperty(StringSE name, @Nullable StringSE value)
      システムプロパティを設定します。
      パラメーター:
      name - プロパティ名
      value - 値