Class: Groonga::QueryLogger

Inherits:
Object
  • Object
show all
Defined in:
ext/groonga/rb-grn-query-logger.c,
lib/groonga/query-logger.rb

Overview

A class for logging query log.

Direct Known Subclasses

CallbackQueryLogger, FileQueryLogger

Defined Under Namespace

Modules: Flags

Instance Method Summary collapse

Instance Method Details

#finObject



101
102
# File 'lib/groonga/query-logger.rb', line 101

def fin
end

#log(flag, timestamp, info, message) ⇒ Object



92
93
94
95
96
# File 'lib/groonga/query-logger.rb', line 92

def log(flag, timestamp, info, message)
  guard do
    puts("#{timestamp}|#{info}#{message}")
  end
end

#reopenObject



98
99
# File 'lib/groonga/query-logger.rb', line 98

def reopen
end