Package org.apache.log4j
Class DefaultThrowableRenderer
- java.lang.Object
-
- org.apache.log4j.DefaultThrowableRenderer
-
- All Implemented Interfaces:
ThrowableRenderer
public final class DefaultThrowableRenderer extends Object implements ThrowableRenderer
Default implementation ofThrowableRenderer
usingThrowable.printStackTrace(PrintWriter)
.- Since:
- 1.2.16
-
-
Constructor Summary
Constructors Constructor Description DefaultThrowableRenderer()
Construct new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
doRender(Throwable throwable)
Render Throwable.static String[]
render(Throwable throwable)
Render throwable using Throwable.printStackTrace.
-
-
-
Method Detail
-
render
public static String[] render(Throwable throwable)
Render throwable using Throwable.printStackTrace.- Parameters:
throwable
- throwable, may not be null.- Returns:
- string representation.
-
doRender
public String[] doRender(Throwable throwable)
Render Throwable.- Specified by:
doRender
in interfaceThrowableRenderer
- Parameters:
throwable
- throwable, may not be null.- Returns:
- String representation.
-
-