|
||||||||||
| 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.AbstractFileLoggingMechanism
org.openmdx.kernel.log.impl.SharedFileLoggingMechanism
org.openmdx.kernel.log.impl.SharedFileStatisticsMechanism
public class SharedFileStatisticsMechanism
This logging mechanism adds today's date to the shared log file name, and also rolls logging over to a new file when dates change (the first new string logged on a new date causes the current log file to close and a new log file to be opened with today's date).
| Field Summary | |
|---|---|
protected static SharedFileStatisticsMechanism |
singleton
|
| Fields inherited from class org.openmdx.kernel.log.impl.AbstractLoggingMechanism |
|---|
OPEN_DATE_FORMAT |
| Constructor Summary | |
|---|---|
protected |
SharedFileStatisticsMechanism()
|
| Method Summary | |
|---|---|
boolean |
acceptsNotificationLogs()
This mechanism does not accept notification logs. |
boolean |
acceptsPerformanceLogs()
This mechanism does not accept performance logs. |
boolean |
acceptsStandardLogs()
This mechanism does not accept standard logs. |
boolean |
acceptsStatisticLogs()
This mechanism accepts statistics logs. |
protected LogFormatter |
createFormatter(String logName,
LogProperties logProperties)
Create a new formatter. |
protected String |
getFileNameSuffixModifier(Log log)
Returns the file name suffix modifier for statistics log files. |
static AbstractLoggingMechanism |
getInstance()
Returns the mechanism object. |
String |
getName()
Returns the name of the mechanism. |
protected boolean |
isDatedLog()
This file mechanism is not dated |
| Methods inherited from class org.openmdx.kernel.log.impl.AbstractFileLoggingMechanism |
|---|
close, getActiveEntities, getPrintWriter, getReadableEntities, getReader, getRemoveableEntities, hasDateRolledOver, logEvent, open, removeEntity, rollLogOver, toString |
| Methods inherited from class org.openmdx.kernel.log.impl.AbstractLoggingMechanism |
|---|
createNotificationEvent, getDateOpend, getFormatter, getLoggers, isOpen, isSharedLog, notifyLogClosed, notifyLoggingLevelChange, notifyLoggingPerformanceChange, notifyLoggingStatisticsChange, notifyLogOpened, setFormatter, setNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static SharedFileStatisticsMechanism singleton
| Constructor Detail |
|---|
protected SharedFileStatisticsMechanism()
| Method Detail |
|---|
public static AbstractLoggingMechanism getInstance()
protected boolean isDatedLog()
isDatedLog in class SharedFileLoggingMechanismpublic boolean acceptsStandardLogs()
acceptsStandardLogs in class AbstractLoggingMechanismpublic boolean acceptsStatisticLogs()
acceptsStatisticLogs in class AbstractLoggingMechanismpublic boolean acceptsPerformanceLogs()
acceptsPerformanceLogs in class AbstractLoggingMechanismpublic boolean acceptsNotificationLogs()
acceptsNotificationLogs in class AbstractLoggingMechanismprotected String getFileNameSuffixModifier(Log log)
getFileNameSuffixModifier in class AbstractFileLoggingMechanismlog - a log
protected LogFormatter createFormatter(String logName,
LogProperties logProperties)
createFormatter in class AbstractLoggingMechanismlogName - the logger's namelogProperties - the log propertiespublic String getName()
getName in class SharedFileLoggingMechanism
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||