Sha256: a0e020d403a52caef2e80682e92cb0c774c4acd7b0f075b34658ac75606bc0dd

Contents?: true

Size: 1.11 KB

Versions: 28

Compression:

Stored size: 1.11 KB

Contents

require 'ext/kernel'

require 'ostruct'
require 'forwardable'
require 'fileutils'

require 'neo4j-core/version'
require 'neo4j/property_validator'
require 'neo4j/property_container'
require 'neo4j/entity_marshal'
require 'neo4j-core/active_entity'
require 'neo4j-core/helpers'
require 'neo4j-core/query_find_in_batches'
require 'neo4j-core/query'

require 'neo4j/entity_equality'
require 'neo4j/node'
require 'neo4j/label'
require 'neo4j/session'
require 'neo4j/ansi'

require 'neo4j/relationship'
require 'neo4j/transaction'

require 'rake'
require 'neo4j/rake_tasks'

require 'logger'

module Neo4j
  module Core
    ORIGINAL_FORMATTER = ::Logger::Formatter.new

    def self.logger(stream = STDOUT)
      @logger ||= Logger.new(stream).tap do |logger|
        logger.formatter = method(:formatter)
      end
    end

    def self.formatter(severity, datetime, progname, msg)
      output = ''
      if Thread.current != Thread.main
        output += "#{ANSI::YELLOW}Thread: #{Thread.current.object_id}: #{ANSI::CLEAR}"
      end
      output += msg
      ORIGINAL_FORMATTER.call(severity, datetime, progname, output)
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
neo4j-core-7.2.4 lib/neo4j-core.rb
neo4j-core-7.2.3 lib/neo4j-core.rb
neo4j-core-7.2.2 lib/neo4j-core.rb
neo4j-core-7.2.1 lib/neo4j-core.rb
neo4j-core-7.2.0 lib/neo4j-core.rb
neo4j-core-7.1.2 lib/neo4j-core.rb
neo4j-core-7.0.9 lib/neo4j-core.rb
neo4j-core-7.1.1 lib/neo4j-core.rb
neo4j-core-7.1.0 lib/neo4j-core.rb
neo4j-core-7.0.8 lib/neo4j-core.rb
neo4j-core-7.0.7 lib/neo4j-core.rb
neo4j-core-7.0.6 lib/neo4j-core.rb
neo4j-core-7.0.5 lib/neo4j-core.rb
neo4j-core-7.0.4 lib/neo4j-core.rb
neo4j-core-7.0.3 lib/neo4j-core.rb
neo4j-core-7.0.2 lib/neo4j-core.rb
neo4j-core-7.0.1 lib/neo4j-core.rb
neo4j-core-7.0.0 lib/neo4j-core.rb
neo4j-core-7.0.0.rc.2 lib/neo4j-core.rb
neo4j-core-7.0.0.rc.1 lib/neo4j-core.rb