Ad Widget

Collapse

Capturing stack trace

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sanlee
    Junior Member
    • Oct 2008
    • 9

    #1

    Capturing stack trace

    Hi,

    I have a stack trace that I need to capture, written by Log4J.

    I am not trying to capture a single line from the stack trace, but the whole trace.

    I am not sure if anyone have tried this before - is it even possible?

    If capturing the whole stack trace is not possible, is it possible to capture a portion it? Being able to capture a fixed number of lines is good enough.
    (i.e.: Everytime exception occurs, capture next 20 lines)

    Thank you in advance.
Working...