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

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

    • getConsole

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

      public final void apply()
    • apply

      public final void apply(LogFile logFile)
    • apply

      protected void apply(LogFile logFile, PropertyResolver resolver)
    • getDefaultCharset

      @DeprecatedSE(since="3.5.0", forRemoval=true) protected CharsetSE getDefaultCharset()
      非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。
      3.5.0 が 4.0.0 から削除され、代わりに getDefaultConsoleCharset()getDefaultFileCharset() が使用されます。
      デフォルトの文字セットを返します。
      戻り値:
      デフォルトの文字セット
    • getDefaultConsoleCharset

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

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

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