Method: Merb.log_path

Defined in:
lib/merb-core.rb

.log_pathObject

Returns

String

Path to the log directory which contains the log file.

:api: public



397
398
399
400
401
402
# File 'lib/merb-core.rb', line 397

def log_path
  case Merb::Config[:log_file]
  when String then File.dirname(Merb::Config[:log_file])
  else Merb.root_path("log")
  end
end