Java Utililty Methods Log to Stream

List of utility methods to do Log to Stream

Description

The list of methods to do Log to Stream are organized into topic(s).

Method

voidlogCallStack(PrintStream out)
log Call Stack
printStackTrace(Thread.currentThread().getStackTrace(), out);
voidlogToStream(OutputStream o)
Adds a handler that will log all messages to a given Output Stream.
StreamHandler sh = new StreamHandler(o, new SimpleFormatter());
addedHandlers.add(sh);
getLogger().addHandler(sh);