Module: Cubic::Logable

Included in:
CubicController, Render
Defined in:
lib/cubic/application/logable.rb

Overview

Responsibe for logging information to the current environment log file.

Instance Method Summary collapse

Instance Method Details

#log(message) ⇒ Object



5
6
7
# File 'lib/cubic/application/logable.rb', line 5

def log(message)
  File.open(log_path, 'a') { |file| file.write(message) }
end