//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected: //ORIGINAL LINE: public void dumpDiagnostics(final org.neo4j.kernel.impl.store.NeoStores source, org.neo4j.internal.diagnostics.DiagnosticsPhase phase, org.neo4j.logging.Logger logger) public void DumpDiagnostics(Org.Neo4j.Kernel.impl.store.NeoStores source, [email protected] phase, Org.Neo4j.Logging.Logger logger) { if (Applicable(phase)) { logger.Log(_message); Dump(source, logger); } }
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected: //ORIGINAL LINE: public void dump(DiagnosticsPhase phase, final org.neo4j.logging.Logger logger) public void dump(DiagnosticsPhase phase, Logger logger) { if (phase.Initialization || phase.ExplicitlyRequested) { logger.Log("Diagnostics providers:"); foreach (DiagnosticsProvider provider in _outerInstance.providers) { logger.Log(provider.DiagnosticsIdentifier); } } }
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected: //ORIGINAL LINE: private void dumpAll(final DiagnosticsPhase phase, org.neo4j.logging.Log log) private void DumpAll(DiagnosticsPhase phase, Log log) { log.Bulk(bulkLog => { phase.emitStart(bulkLog); foreach (DiagnosticsProvider provider in _providers) { Dump(provider, phase, bulkLog); } phase.emitDone(bulkLog); }); }
private static void Dump(DiagnosticsProvider provider, DiagnosticsPhase phase, Log log) { // Optimization to skip diagnostics dumping (which is time consuming) if there's no log anyway. // This is first and foremost useful for speeding up testing. if (log == NullLog.Instance) { return; } try { provider.Dump(phase, log.InfoLogger()); } catch (Exception cause) { log.Error("Failure while logging diagnostics for " + provider, cause); } }
public override void Dump(DiagnosticsPhase phase, Logger logger) { Extractor.dumpDiagnostics(Source, phase, logger); }
private void Dump(DiagnosticsPhase phase, DiagnosticsProvider provider, Log log) { phase.emitStart(log, provider); Dump(provider, phase, log); phase.emitDone(log, provider); }
internal bool Applicable([email protected] phase) { return(phase.Initialization || phase.ExplicitlyRequested); }