public final class

DefaultThrowableRenderer

extends Object
implements ThrowableRenderer
java.lang.Object
   ↳ org.apache.log4j.DefaultThrowableRenderer

Class Overview

Default implementation of ThrowableRenderer using Throwable.printStackTrace.

Summary

Public Constructors
DefaultThrowableRenderer()
Construct new instance.
Public Methods
String[] doRender(Throwable throwable)
Render Throwable.
static String[] render(Throwable throwable)
Render throwable using Throwable.printStackTrace.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.log4j.spi.ThrowableRenderer

Public Constructors

public DefaultThrowableRenderer ()

Construct new instance.

Public Methods

public String[] doRender (Throwable throwable)

Render Throwable.

Parameters
throwable throwable, may not be null.
Returns
  • String representation.

public static String[] render (Throwable throwable)

Render throwable using Throwable.printStackTrace.

Parameters
throwable throwable, may not be null.
Returns
  • string representation.