Esempio n. 1
0
 private static void LogLong(Org.Neo4j.Logging.Logger logger, string message, long value)
 {
     if (value != OsBeanUtil.VALUE_UNAVAILABLE)
     {
         logger.Log(message + value);
     }
 }
Esempio n. 2
0
 private ConsistencyReportLog(System.Func <PrintWriter> writerSupplier, object maybeLock, bool autoFlush)
 {
     this._writerSupplier = writerSupplier;
     this.@lock           = (maybeLock != null) ? maybeLock : this;
     _infoLogger          = new ConsistencyReportLogger(writerSupplier, @lock, "INFO ", autoFlush);
     _warnLogger          = new ConsistencyReportLogger(writerSupplier, @lock, "WARN ", autoFlush);
     _errorLogger         = new ConsistencyReportLogger(writerSupplier, @lock, "ERROR", autoFlush);
 }
Esempio n. 3
0
 public void Dump([email protected] phase, Org.Neo4j.Logging.Logger logger)
 {
     if (phase.Initialization || phase.ExplicitlyRequested)
     {
         logger.Log(_message);
         Dump(logger);
     }
 }
Esempio n. 4
0
 public ClassicCoreSPI(PlatformModule platform, DataSourceModule dataSource, Logger msgLog, CoreAPIAvailabilityGuard availability, ThreadToStatementContextBridge threadToTransactionBridge)
 {
     this._platform     = platform;
     this._dataSource   = dataSource;
     this._msgLog       = msgLog;
     this._availability = availability;
     this._threadToTransactionBridge = threadToTransactionBridge;
 }
 private void LogDependencyException(KernelContext context, Logger dbmsLog, string message)
 {
     // We can for instance get unsatisfied dependency exceptions when the kernel extension is created as part of a consistency check run.
     // In such cases, we will be running in a TOOL context, and we ignore such exceptions since they are harmless.
     // Tools only read, and don't run queries, so there is no need for these advanced pieces of infrastructure.
     if (context.DatabaseInfo() != DatabaseInfo.TOOL)
     {
         // If we are not in a "TOOL" context, then we log this at the "DBMS" level, since it might be important for correctness.
         dbmsLog.Log(message);
     }
 }
Esempio n. 6
0
 internal abstract void dump(Org.Neo4j.Kernel.impl.store.NeoStores source, Org.Neo4j.Logging.Logger logger);
Esempio n. 7
0
//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);
            }
        }
Esempio n. 8
0
 internal abstract void invoke(AsyncLogTest state, Org.Neo4j.Logging.Logger logger);
Esempio n. 9
0
 internal abstract void dump(Org.Neo4j.Logging.Logger logger);
Esempio n. 10
0
 internal abstract void dump(NeoStoreDataSource source, Org.Neo4j.Logging.Logger logger);