Class: Tanker::Core::LogRecord
- Inherits:
-
Object
- Object
- Tanker::Core::LogRecord
- Defined in:
- lib/tanker/core/log_record.rb
Constant Summary collapse
- LEVEL_DEBUG =
1
- LEVEL_INFO =
2
- LEVEL_WARNING =
3
- LEVEL_ERROR =
4
Instance Attribute Summary collapse
-
#category ⇒ Object
readonly
Returns the value of attribute category.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(category, level, file, line, message) ⇒ LogRecord
constructor
A new instance of LogRecord.
Constructor Details
#initialize(category, level, file, line, message) ⇒ LogRecord
Returns a new instance of LogRecord.
12 13 14 15 16 17 18 |
# File 'lib/tanker/core/log_record.rb', line 12 def initialize(category, level, file, line, ) @category = category @level = level @file = file @line = line @message = end |
Instance Attribute Details
#category ⇒ Object (readonly)
Returns the value of attribute category.
5 6 7 |
# File 'lib/tanker/core/log_record.rb', line 5 def category @category end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
5 6 7 |
# File 'lib/tanker/core/log_record.rb', line 5 def file @file end |
#level ⇒ Object (readonly)
Returns the value of attribute level.
5 6 7 |
# File 'lib/tanker/core/log_record.rb', line 5 def level @level end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
5 6 7 |
# File 'lib/tanker/core/log_record.rb', line 5 def line @line end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/tanker/core/log_record.rb', line 5 def @message end |