|
AdventNet Web NMS 4 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.adventnet.management.log.LogUser
This class provides methods for writing Logout messages.All the methods in this class calls the methods of the corresponding Writer class( LogBasewriter or LogFileWriter or LogStreamWriter).
| Field Summary | |
boolean |
m_is_enabled
|
int |
m_level
Returns the level of log. |
LogBaseWriter |
m_log_writer
|
java.lang.String |
m_name
|
| Constructor Summary | |
LogUser(java.lang.String name,
int level,
LogBaseWriter log_writer)
Constructor to create a LogUser with the Name, LogLevel and LogWriter as arguments. |
|
| Method Summary | |
void |
abort(java.lang.String fail_msg,
java.lang.Throwable exception)
Deprecated. |
void |
assert(boolean condition,
java.lang.String fail_msg)
Deprecated. |
void |
fail(java.lang.String fail_msg,
java.lang.Throwable exception)
calls the log method of the LogUser class. |
void |
flush()
Calls the flush method of the Corresponding Writer class. |
int |
getLevel()
Returns the level of the log. |
boolean |
isEnabled()
Returns the status of the log. |
boolean |
isSuppressModuleNameLogging()
Returns true if suppressModuleName enabled. |
void |
log(java.lang.String message,
int level)
This method calls the log method of the corresponding Writer class. |
void |
logException(java.lang.Throwable exception,
int level)
This method calls the logException method of the corresponding Writer class. |
void |
logStackTrace(int level)
This method calls the logStackTrace method of the corresponding Writer class. |
void |
setDisplayName(java.lang.String displaytag)
The Display Name for this LogUser |
void |
setLevel(int level)
Sets the level of the log message. |
void |
setStatus(boolean stat)
Sets the status of the log. |
void |
setSuppressModuleNameLogging(boolean bFlag)
Determines wheather to log ModuleName. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.lang.String m_name
public int m_level
public boolean m_is_enabled
public LogBaseWriter m_log_writer
| Constructor Detail |
public LogUser(java.lang.String name,
int level,
LogBaseWriter log_writer)
name - The Name of the LogUser.level - The LogLevel of the LogUser.log_writer - The LogWriter for this LogUser.| Method Detail |
public void setSuppressModuleNameLogging(boolean bFlag)
bFlag - a boolean value, where true indicates to suppress ModuleName
in the log file.public boolean isSuppressModuleNameLogging()
public void log(java.lang.String message,
int level)
message - Message to be printedlevel - level of the log.
public void logException(java.lang.Throwable exception,
int level)
exception - Exception message to be printedlevel - level of the log.public void logStackTrace(int level)
level - level of the log.
public void fail(java.lang.String fail_msg,
java.lang.Throwable exception)
fail_msg - a String to be printed.exception - an Exception that is raised.public void flush()
public void setLevel(int level)
level - an integer.getLevel()public void setStatus(boolean stat)
stat - a boolean to enable or disable the LogUsersetLevel(int)public int getLevel()
public boolean isEnabled()
public void abort(java.lang.String fail_msg,
java.lang.Throwable exception)
fail_msg - a string to be printed.exception - an Exception that is raised.
public void assert(boolean condition,
java.lang.String fail_msg)
otherwise, no error message will be printed.
condition - either true - it returns to calling to the method with
out printing or false - it calls the fail method.fail_msg - message to be printed.public void setDisplayName(java.lang.String displaytag)
displayTag - The String representing the Display Name for this LogUser
|
AdventNet Web NMS 4 API Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||