Class: Groonga::Logger

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

Overview

groongaから出力されるログを記録するためのクラス。

Direct Known Subclasses

CallbackLogger, FileLogger

Defined Under Namespace

Modules: Flags

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.log_pathObject

Deprecated.

since 3.0.1. Use path instead.



49
50
51
# File 'lib/groonga/logger.rb', line 49

def log_path
  path
end

.log_path=(path) ⇒ Object

Deprecated.

since 3.0.1. Use path= instead.



55
56
57
# File 'lib/groonga/logger.rb', line 55

def log_path=(path)
  self.path = path
end

.query_log_pathObject

Deprecated.

since 3.0.1. Use QueryLogger.path instead.



61
62
63
# File 'lib/groonga/logger.rb', line 61

def query_log_path
  QueryLogger.path
end

.query_log_path=(path) ⇒ Object

Deprecated.

since 3.0.1. Use QueryLogger.path= instead.



67
68
69
# File 'lib/groonga/logger.rb', line 67

def query_log_path=(path)
  QueryLogger.path = path
end

Instance Method Details

#finObject



81
82
# File 'lib/groonga/logger.rb', line 81

def fin
end

#log(level, timestamp, title, message, location) ⇒ Object



72
73
74
75
76
# File 'lib/groonga/logger.rb', line 72

def log(level, timestamp, title, message, location)
  guard do
    puts("#{timestamp}|#{mark(level)}|#{title} #{message} #{location}")
  end
end

#reopenObject



78
79
# File 'lib/groonga/logger.rb', line 78

def reopen
end