Class: Groonga::Logger
- Inherits:
-
Object
- Object
- Groonga::Logger
- Defined in:
- ext/groonga/rb-grn-logger.c,
lib/groonga/logger.rb
Overview
groongaから出力されるログを記録するためのクラス。
Direct Known Subclasses
Defined Under Namespace
Modules: Flags
Class Method Summary collapse
-
.log_path ⇒ Object
deprecated
Deprecated.
since 3.0.1. Use path instead.
-
.log_path=(path) ⇒ Object
deprecated
Deprecated.
since 3.0.1. Use path= instead.
-
.query_log_path ⇒ Object
deprecated
Deprecated.
since 3.0.1. Use QueryLogger.path instead.
-
.query_log_path=(path) ⇒ Object
deprecated
Deprecated.
since 3.0.1. Use QueryLogger.path= instead.
Instance Method Summary collapse
Class Method Details
.log_path ⇒ Object
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_path ⇒ Object
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
#fin ⇒ Object
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, , title, , location) guard do puts("#{}|#{mark(level)}|#{title} #{} #{location}") end end |
#reopen ⇒ Object
78 79 |
# File 'lib/groonga/logger.rb', line 78 def reopen end |