クラスの使用
org.springframework.boot.logging.StandardStackTracePrinter
StandardStackTracePrinter を使用するパッケージ
org.springframework.boot.logging 内の StandardStackTracePrinter 使用
修飾子と型メソッド説明static StandardStackTracePrinterStandardStackTracePrinter.rootFirst()ルート例外を最初に含むスタックトレースを出力するStandardStackTracePrinterを返します (Throwable.printStackTrace()の逆)。static StandardStackTracePrinterStandardStackTracePrinter.rootLast()ルート例外を最後にしてスタックトレースを出力するStandardStackTracePrinterを返します (Throwable.printStackTrace()と同じ)。StandardStackTracePrinter.withCommonFrames()このStandardStackTracePrinterから新しいStandardStackTracePrinterを返してください。このStandardStackTracePrinterでは、共通フレームをすべて出力し、"... N more" というメッセージで置き換えるのではなく、共通フレームをすべて出力します。StandardStackTracePrinter.withFilter(PredicateSE<ThrowableSE> predicate) 指定された述語に一致するスロー可能オブジェクト (原因と抑制を除く) のみを含む新しいStandardStackTracePrinterを返します。StandardStackTracePrinter.withFormatter(FunctionSE<ThrowableSE, StringSE> formatter) 指定されたフォーマッタを使用して、スロー可能なオブジェクトの文字列表現を作成する新しいStandardStackTracePrinterを返します。StandardStackTracePrinter.withFrameFilter(BiPredicateSE<IntegerSE, StackTraceElementSE> predicate) 指定された述語に一致するフレームのみを含む新しいStandardStackTracePrinterを返します。StandardStackTracePrinter.withFrameFormatter(FunctionSE<StackTraceElementSE, StringSE> frameFormatter) 指定されたフォーマッタを使用してフレームの文字列表現を作成する、このStandardStackTracePrinterから新しいStandardStackTracePrinterを返します。StandardStackTracePrinter.withHashes()各スタックトレースのハッシュを生成して出力する新しいStandardStackTracePrinterを返します。StandardStackTracePrinter.withHashes(boolean hashes) 各スタックトレースに対してハッシュを生成して出力するかどうかを変更する新しいStandardStackTracePrinterを返します。StandardStackTracePrinter.withHashes(@Nullable ToIntFunctionSE<StackTraceElementSE> frameHasher) StandardStackTracePrinter.withLineSeparator(StringSE lineSeparator) 指定された行セパレーターを使用してスタックトレースを出力する新しいStandardStackTracePrinterを返します。StandardStackTracePrinter.withMaximumLength(int maximumLength) 指定された長さよりも長い出力を切り捨てるために省略記号を使用する、新しいStandardStackTracePrinterを返します。StandardStackTracePrinter.withMaximumThrowableDepth(int maximumThrowableDepth) このStandardStackTracePrinterから、指定された最大深度よりも深いフレーム(原因フレームと抑制フレームを含む)をフィルタリングする新しいStandardStackTracePrinterを返します。StandardStackTracePrinter.withoutSuppressed()