Class: Rack::Bug::LogPanel::LogEntry
- Inherits:
-
Object
- Object
- Rack::Bug::LogPanel::LogEntry
- Defined in:
- lib/rack/bug/panels/log_panel.rb
Constant Summary collapse
- LEVELS =
['DEBUG', 'INFO', 'WARN', 'ERROR', 'FATAL']
Instance Attribute Summary collapse
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
- #cleaned_message ⇒ Object
-
#initialize(level, time, message) ⇒ LogEntry
constructor
A new instance of LogEntry.
Constructor Details
Instance Attribute Details
#level ⇒ Object (readonly)
Returns the value of attribute level.
8 9 10 |
# File 'lib/rack/bug/panels/log_panel.rb', line 8 def level @level end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
8 9 10 |
# File 'lib/rack/bug/panels/log_panel.rb', line 8 def @message end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
8 9 10 |
# File 'lib/rack/bug/panels/log_panel.rb', line 8 def time @time end |
Instance Method Details
#cleaned_message ⇒ Object
17 18 19 |
# File 'lib/rack/bug/panels/log_panel.rb', line 17 def @message.to_s.gsub(/\e\[[;\d]+m/, "") end |