|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILptsLogListener
Class Description : The listener interface for the LOGGER.
Method Summary | |
---|---|
void |
newLogGenerated(TLptsLog log)
Used to inform a listener that a new TLptsLog has been generated. |
Method Detail |
---|
void newLogGenerated(TLptsLog log)
Used to inform a listener that a new TLptsLog has been generated.
Notes :
Example :
public class MyApp implements ILptsLogListener { public MyApp() { TLptsLogger.addListener(this); } public void newLogGenerated(TLptsLog log) { if (log.getType().equals(TLptsLogger.LOG_TYPE.ERROR)) System.out.println("LOG ERROR :" + log.getMessage() + " : Exception : " + log.getExceptionMessage()); if (log.getType().equals(TLptsLogger.LOG_TYPE.WARNING)) System.out.println("LOG WARNING :" + log.getMessage() + " : Exception : " + log.getExceptionMessage()); if (log.getType().equals(TLptsLogger.LOG_TYPE.MESSAGE)) System.out.println("LOG MESSAGE :" + log.getMessage() + " : Exception : " + log.getExceptionMessage()); } }
log
- the TLptsLog Generated
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |