ak.err
Class Trace
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--ak.err.AppError
|
+--ak.err.Trace
- public class Trace
- extends AppError
Class Trace implements simple tracing mechanism.
It allow the trace per module. Default it trace
per application.
Note: Any error do trace automaticaly.
This class extends AppError and pre-sets the
AppErrorItem with relevant parameters.
- Version:
- V1.1 Copyright(c)2000 Alexej Kupin
- See Also:
- Serialized Form
Fields inherited from class java.lang.Throwable |
backtrace,
detailMessage,
serialVersionUID |
Constructor Summary |
Trace(java.lang.String sModule)
|
Method Summary |
java.lang.String |
toString()
Overwrite super.toString() in order to hide
overhead information.(e.g. on ex.printStackTrace() |
static void |
trace(java.lang.String sMSG)
traces the text to default log-file(AppErr.log) |
static void |
trace(java.lang.String sModul,
java.lang.String sMSG)
trace per module:
traces the text to modul log-file(sModul+".log") |
Methods inherited from class ak.err.AppError |
addComponent,
addInfo,
addParam,
CheckFile,
getErrItem,
getMessage,
GetPath,
GetPath,
GetPath,
GetPath,
Init,
InitDefault,
loadMedia,
log,
log,
MakeLog,
ObjectToString,
Read,
resolveMSG,
SetEnv,
SetMsg,
show,
show,
showAsk,
showAsk,
showError,
showError,
showInfo,
showInfo,
showWarning,
showWarning,
StringToObject |
Methods inherited from class java.lang.Throwable |
fillInStackTrace,
getLocalizedMessage,
printStackTrace,
printStackTrace,
printStackTrace,
printStackTrace0 |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
Trace
public Trace(java.lang.String sModule)
trace
public static void trace(java.lang.String sMSG)
- traces the text to default log-file(AppErr.log)
trace
public static void trace(java.lang.String sModul,
java.lang.String sMSG)
- trace per module:
traces the text to modul log-file(sModul+".log")
toString
public java.lang.String toString()
- Overwrite super.toString() in order to hide
overhead information.(e.g. on ex.printStackTrace()
- Overrides:
- toString in class java.lang.Throwable