|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.util.gis.server.logger.GisLogger
public class GisLogger
| Field Summary | |
|---|---|
static boolean |
GIS_LOGGER_ACTIVE
|
protected static org.apache.log4j.Logger |
logger
|
protected static IGisLogger |
loggerInstance
|
static boolean |
logLibraryFails
|
| Fields inherited from interface com.ontimize.util.gis.server.interfaces.IGisLogger |
|---|
LOG_DEBUG, LOG_ERROR, LOG_FATAL, LOG_INFO, LOG_TRACE, LOG_WARN |
| Constructor Summary | |
|---|---|
GisLogger()
|
|
| Method Summary | |
|---|---|
void |
addLog(java.lang.Object o,
int level)
Level values are in this class as static values: LOG_TRACE, LOG_INFO, LOG_WARN, LOG_ERROR, LOG_FATAL |
void |
addRemoteAppender(java.lang.String host,
int port)
Add a remote appender to the log4j |
org.apache.log4j.Logger |
getLogger()
|
static IGisLogger |
getLoggerInstance()
Get the IGisLogger instance reference. |
void |
initLog(java.lang.Class parentClass,
java.lang.Object propertiesNode)
Initialize the logger with specified properties file xml node |
void |
initLog(java.lang.Class parentClass,
java.lang.String propertiesPath)
Initialize the logger with specified properties file |
void |
removeRemoteAppender(java.lang.String host,
int port)
Remove a remote appender for log4j |
static void |
setLoggerInstance(IGisLogger logger)
Set the logger class only if loggerInstance is null |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean logLibraryFails
public static boolean GIS_LOGGER_ACTIVE
protected static org.apache.log4j.Logger logger
protected static IGisLogger loggerInstance
| Constructor Detail |
|---|
public GisLogger()
| Method Detail |
|---|
public static IGisLogger getLoggerInstance()
IGisLogger instance reference. Create a GisLogger instance
of not exists.
public static void setLoggerInstance(IGisLogger logger)
throws java.lang.Exception
logger -
java.lang.Exception
public void addRemoteAppender(java.lang.String host,
int port)
host - Remote hostport - Port
public void removeRemoteAppender(java.lang.String host,
int port)
host - Remote hostport - Port
public void initLog(java.lang.Class parentClass,
java.lang.String propertiesPath)
IGisLogger
initLog in interface IGisLoggerpropertiesPath - Properties file path
public void addLog(java.lang.Object o,
int level)
addLog in interface IGisLoggero - Messagelevel - Log level (ERROR, WARNING...)
public void initLog(java.lang.Class parentClass,
java.lang.Object propertiesNode)
IGisLogger
initLog in interface IGisLoggerpropertiesNode - Properties xml nodepublic org.apache.log4j.Logger getLogger()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||