public void dumpLoggingRegistry() { LoggingRegistry registry = LoggingRegistry.getInstance(); Map<String, LoggingObjectInterface> loggingMap = registry.getMap(); for ( LoggingObjectInterface loggingObject : loggingMap.values() ) { System.out.println( loggingObject.getLogChannelId() + " - " + loggingObject.getObjectName() + " - " + loggingObject.getObjectType() ); } }
public String dump( boolean includeGeneral ) { StringBuilder out = new StringBuilder( 50000 ); for ( LoggingObjectInterface o : this.map.values() ) { if ( ( includeGeneral ) || ( !o.getObjectType().equals( LoggingObjectType.GENERAL ) ) ) { out.append( o.getContainerObjectId() ); out.append( "\t" ); out.append( o.getLogChannelId() ); out.append( "\t" ); out.append( o.getObjectType().name() ); out.append( "\t" ); out.append( o.getObjectName() ); out.append( "\t" ); out.append( o.getParent() != null ? o.getParent().getLogChannelId() : "-" ); out.append( "\t" ); out.append( o.getParent() != null ? o.getParent().getObjectType().name() : "-" ); out.append( "\t" ); out.append( o.getParent() != null ? o.getParent().getObjectName() : "-" ); out.append( "\n" ); } } return out.toString(); }
LoggingObjectInterface foundParent = found.getParent(); LoggingObjectInterface loggingSourceParent = loggingSource.getParent(); String foundLogChannelId = found.getLogChannelId(); if ( foundParent != null && loggingSourceParent != null ) { String foundParentLogChannelId = foundParent.getLogChannelId(); String sourceParentLogChannelId = loggingSourceParent.getLogChannelId(); if ( foundParentLogChannelId != null && sourceParentLogChannelId != null && foundParentLogChannelId.equals( sourceParentLogChannelId ) ) { String parentLogChannelId = loggingSource.getParent().getLogChannelId(); if ( parentLogChannelId != null ) { List<String> parentChildren = for ( int i = 0; i < cutCount; i++ ) { LoggingObjectInterface toRemove = all.get( i ); if ( !channelsNotToRemove.contains( toRemove.getLogChannelId() ) ) { this.map.remove( toRemove.getLogChannelId() );
if ( parent.getLogChannelId() != null ) { LoggingObjectInterface parentLoggingObject = LoggingRegistry.getInstance().getLoggingObject( parent.getLogChannelId() ); if ( parentLoggingObject != null ) { parent = parentLoggingObject;
String parentLogChannelId = loggingObject.getParent().getLogChannelId(); List<String> logChannelChildren = LoggingRegistry.getInstance().getLogChannelChildren( parentLogChannelId ); int childIndex = Const.indexOfString( log.getLogChannelId(), logChannelChildren );
break; case CHANNEL_ID: value = loggingObject.getLogChannelId(); break; case LOG_DATE: break; case PARENT_CHANNEL_ID: value = loggingObject.getParent() == null ? null : loggingObject.getParent().getLogChannelId(); break; case ROOT_CHANNEL_ID: