Class: PlatinaWorld::Loggers::FileFormatter
- Inherits:
-
Object
- Object
- PlatinaWorld::Loggers::FileFormatter
- Defined in:
- lib/platina_world/loggers/file_status.rb
Instance Method Summary collapse
Instance Method Details
#call(severity, time, program_name, message) ⇒ Object
14 15 16 |
# File 'lib/platina_world/loggers/file_status.rb', line 14 def call(severity, time, program_name, ) file_format(severity) % end |
#file_format(severity) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/platina_world/loggers/file_status.rb', line 18 def file_format(severity) case severity when "INFO" " \e[32m%{action}\e[0m %{path}\n" when "ERROR" " \e[31m%{action}\e[0m %{path}\n" end end |