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
22 23 24 |
# File 'lib/platina_world/loggers/file_status.rb', line 22 def call(severity, time, program_name, ) file_format([:action]) % end |
#file_format(action) ⇒ Object
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/platina_world/loggers/file_status.rb', line 26 def file_format(action) case action when :create " \e[32m%{action}\e[0m %{path}\n" when :skip " \e[34m%{action} \e[0m %{path}\n" when :failed " \e[31m%{action} \e[0m %{path}\n" end end |