|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lightstreamer.javameclient.midp.logger.Logger
public class Logger
Logger class for debug purpose. Writes log lines with a complete date, the logger identification and the logged message. This class writes lines using System.out.println so the log will be not available when running on mobile phones but only on the IDE's console.
| Method Summary | |
|---|---|
void |
activate()
Switch this Logger instance to active (ie lines of log will appear on console) |
void |
deactivate()
Switch this Logger instance to non active (ie lines of log will not appear on console) |
static Logger |
getLogger(java.lang.String id)
Gets a logger from a static repository. |
boolean |
isActive()
Gets the actual status of the Logger |
void |
log(java.lang.String write)
Writes a line of log (if logger is active) |
static void |
setDefaultActive(boolean active)
Since Logger instances are not useful in production environments this method permits to activate/deactivate the logging system. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Logger getLogger(java.lang.String id)
id - the id of the requested logger.
public static void setDefaultActive(boolean active)
activate() method.
active - true/false to activate/deactivate the logging systemdeactivate(),
isActive()public void activate()
setDefaultActive(boolean),
deactivate(),
isActive()public void deactivate()
setDefaultActive(boolean),
activate(),
isActive()public boolean isActive()
setDefaultActive(boolean),
activate(),
deactivate()public void log(java.lang.String write)
write - the line of logisActive()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||