|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.kernel.log.impl.AbstractLoggingMechanism
org.openmdx.kernel.log.impl.SocketLoggingMechanism
public class SocketLoggingMechanism
This logging mechanism logs events to a socket stream.
| Field Summary |
|---|
| Fields inherited from class org.openmdx.kernel.log.impl.AbstractLoggingMechanism |
|---|
OPEN_DATE_FORMAT |
| Constructor Summary | |
|---|---|
protected |
SocketLoggingMechanism()
|
| Method Summary | |
|---|---|
boolean |
acceptsStatistics()
This mechanism accepts statistics logs |
protected void |
close()
This method closes the particular logging mechanism so that messages no longer get logged to the mechanism. |
static AbstractLoggingMechanism |
getInstance()
Returns the mechanism object. |
String |
getName()
Returns the name of the mechanism. |
protected void |
logEvent(Log log,
LogEvent event)
Logs a log event. |
protected void |
notifyLogClosed(Log log)
Log a message that a logger was closed on this mechanism |
protected void |
notifyLoggingLevelChange(Log log,
int loggingLevel)
Log a log level change |
protected void |
notifyLoggingPerformanceChange(Log log,
boolean state)
Log a performance change |
protected void |
notifyLoggingStatisticsChange(Log log,
boolean state)
Put out a nice message that a log changed its statistics state |
protected void |
notifyLogOpened(Log log,
int loggingLevel)
Do not handle any kind of notification events |
protected void |
open(Log log)
This method opens the particular logging mechanism so that messages can be output. |
String |
toString()
Return a debug string. |
| Methods inherited from class org.openmdx.kernel.log.impl.AbstractLoggingMechanism |
|---|
acceptsNotificationLogs, acceptsPerformanceLogs, acceptsStandardLogs, acceptsStatisticLogs, createFormatter, createNotificationEvent, getActiveEntities, getDateOpend, getFormatter, getLoggers, getReadableEntities, getReader, getRemoveableEntities, isOpen, isSharedLog, removeEntity, setFormatter, setNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected SocketLoggingMechanism()
| Method Detail |
|---|
public static AbstractLoggingMechanism getInstance()
protected void open(Log log)
open in class AbstractLoggingMechanismlog - A Loggerprotected void close()
close in class AbstractLoggingMechanism
protected void notifyLogOpened(Log log,
int loggingLevel)
notifyLogOpened in class AbstractLoggingMechanismlog - A loggerprotected void notifyLogClosed(Log log)
AbstractLoggingMechanism
notifyLogClosed in class AbstractLoggingMechanismlog - A logger
protected void notifyLoggingLevelChange(Log log,
int loggingLevel)
AbstractLoggingMechanism
notifyLoggingLevelChange in class AbstractLoggingMechanismlog - A logger
protected void notifyLoggingPerformanceChange(Log log,
boolean state)
AbstractLoggingMechanism
notifyLoggingPerformanceChange in class AbstractLoggingMechanismlog - A loggerstate - A new performance logging state
protected void notifyLoggingStatisticsChange(Log log,
boolean state)
AbstractLoggingMechanism
notifyLoggingStatisticsChange in class AbstractLoggingMechanismlog - A loggerstate - A new state to be logged as notification
protected void logEvent(Log log,
LogEvent event)
logEvent in class AbstractLoggingMechanismlog - A loggerevent - A log eventpublic boolean acceptsStatistics()
public String getName()
getName in class AbstractLoggingMechanismpublic String toString()
toString in class AbstractLoggingMechanism
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||