For places where you cannot debug, you can use CordysLogger according to your convenience and debug your piece of code.
Logging into file system from Java
the Jar which needs to be used is managementlib.jar
private static final CordysLogger fileLog = CordysLogger.getCordysLogger(JE_UTILITY.class);
JE_UTILITY : Class Name where you want to Log.
This variable is a class variable.
the variable used is like
fileLog.log(Severity.ERROR, "Exception in getting Pending tasks for the user "+e.getMessage());
fileLog.log(Severity.ERROR, "Exception in getting Pending tasks for the user",e);
Logging into file system from Java
the Jar which needs to be used is managementlib.jar
private static final CordysLogger fileLog = CordysLogger.getCordysLogger(JE_UTILITY.class);
JE_UTILITY : Class Name where you want to Log.
This variable is a class variable.
the variable used is like
fileLog.log(Severity.ERROR, "Exception in getting Pending tasks for the user "+e.getMessage());
fileLog.log(Severity.ERROR, "Exception in getting Pending tasks for the user",e);
No comments:
Post a Comment