public class ErrorLogUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ERROR_PROPERTY_FILE |
static String |
IS_DEBUG |
static String |
LOG_ROOT |
Modifier and Type | Method and Description |
---|---|
static ErrorLogUtil |
getInstance() |
boolean |
isDebug()
for turning off/on the debug mode
|
void |
writeToLog(String message,
Object objectRef,
int projectID)
this method gets calld by other classes to log messages, errors and debugs
|
void |
writeToLog(String message,
Object objectRef,
String projectID)
this method gets calld by other classes to log messages, errors and debugs
|
void |
writeToLog(String message,
String classRef,
int projectID)
An over loaded method gets calld by other classes to log messages, errors and debugs
|
void |
writeToLog(String message,
String classRef,
String projectID)
An over loaded method gets calld by other classes to log messages, errors and debugs
|
public static final String ERROR_PROPERTY_FILE
public static final String LOG_ROOT
public static final String IS_DEBUG
public static ErrorLogUtil getInstance()
public boolean isDebug()
public void writeToLog(String message, Object objectRef, int projectID)
message
- a string messageobjectRef
- the class object. use 'this' to see the name of the class in
log fileprojectID
- public void writeToLog(String message, String classRef, int projectID)
message
- a String messageclassRef
- a String. for passing the class name in static methodprojectID
- public void writeToLog(String message, Object objectRef, String projectID)
message
- a string messageobjectRef
- the class object. use 'this' to see the name of the class in
log fileprojectID
- Copyright © 2016. All rights reserved.