Class: Logy::Viewer

Inherits:
Object
  • Object
show all
Defined in:
app/services/logy/viewer.rb

Constant Summary collapse

LOG_PATH =
"#{Rails.application.config.logs_path}/"

Class Method Summary collapse

Class Method Details

.call(file_name) ⇒ Object



5
6
7
# File 'app/services/logy/viewer.rb', line 5

def self.call(file_name)
  File.open(LOG_PATH + (file_name + '.log'))
end