| java.lang.Object org.incava.qualog.QlWriter
QlWriter | public class QlWriter (Code) | | Writes the logging output, applying filters and decorations. The
Qualog class offers a much cleaner and more thorough interface
than this class.
See Also: org.incava.qualog.Qualog |
Method Summary | |
public void | addClassSkipped(Class cls) | public void | addClassSkipped(String clsName) | public void | addFilter(QlFilter filter) Adds a filter to be applied for output. | protected void | appendPadded(StringBuffer buf, String str, int maxSize) | public void | clear() Resets parameters to their defaults. | public void | clearClassColor(String className) | public synchronized int | findStackStart(StackTraceElement[] stack) Returns the index in the stack where logging (stacks) should be
displayed. | protected StackTraceElement[] | getStack(int depth) | public boolean | isLoggable(QlLevel level) | public boolean | isSkipped(StackTraceElement ste) | protected String | objectToString(Object obj) | protected void | outputClassAndMethod(StringBuffer buf, ANSIColor classColor, ANSIColor methodColor, StackTraceElement stackElement) | protected void | outputFileName(StringBuffer buf, ANSIColor fileColor, StackTraceElement stackElement) | protected void | outputMessage(StringBuffer buf, int framesShown, ANSIColor[] msgColor, String msg, StackTraceElement stackElement) | protected String | repeat(int len, char ch) | protected StringBuffer | repeat(StringBuffer buf, int len, char ch) | public void | reset() | public void | set(boolean columns, int fileWidth, int lineWidth, int classWidth, int functionWidth) | public void | setClassColor(String className, ANSIColor color) | public void | setColumns(boolean cols) | public void | setDisabled(Class cls) | public void | setFileColor(String fileName, ANSIColor color) | public void | setMethodColor(String className, String methodName, ANSIColor color) | public void | setOutput(int type, QlLevel level) Sets the output type and level. | public void | setPackageColor(String pkg, ANSIColor color) | void | setUseColor(boolean useColor) | public boolean | stack(QlLevel level, ANSIColor[] msgColors, String name, Object obj, ANSIColor fileColor, ANSIColor classColor, ANSIColor methodColor, int numFrames) | public synchronized boolean | stack(QlLevel lvl, ANSIColor[] msgColor, String msg, ANSIColor fileColor, ANSIColor classColor, ANSIColor methodColor, int numFrames) | public boolean | verbose() |
NO_OUTPUT | final public static int NO_OUTPUT(Code) | | |
QUIET | final public static int QUIET(Code) | | |
VERBOSE | final public static int VERBOSE(Code) | | |
classWidth | public int classWidth(Code) | | |
columns | public boolean columns(Code) | | |
fileWidth | public int fileWidth(Code) | | |
functionWidth | public int functionWidth(Code) | | |
lineWidth | public int lineWidth(Code) | | |
showClasses | public boolean showClasses(Code) | | |
showFiles | public boolean showFiles(Code) | | |
addClassSkipped | public void addClassSkipped(Class cls)(Code) | | |
addClassSkipped | public void addClassSkipped(String clsName)(Code) | | |
clear | public void clear()(Code) | | Resets parameters to their defaults.
|
clearClassColor | public void clearClassColor(String className)(Code) | | |
findStackStart | public synchronized int findStackStart(StackTraceElement[] stack)(Code) | | Returns the index in the stack where logging (stacks) should be
displayed. Returns -1 if the end of the stack is reached and no logging
should occur.
|
reset | public void reset()(Code) | | |
set | public void set(boolean columns, int fileWidth, int lineWidth, int classWidth, int functionWidth)(Code) | | |
setColumns | public void setColumns(boolean cols)(Code) | | |
setOutput | public void setOutput(int type, QlLevel level)(Code) | | Sets the output type and level. Either verbose or quiet can be enabled.
|
setUseColor | void setUseColor(boolean useColor)(Code) | | |
verbose | public boolean verbose()(Code) | | |
|
|