class Appsignal::Config
def log_file_path
def log_file_path path = config_hash[:log_path] || root_path && File.join(root_path, "log") if path && File.writable?(path) return File.join(File.realpath(path), "appsignal.log") end system_tmp_dir = self.class.system_tmp_dir if File.writable? system_tmp_dir $stdout.puts "appsignal: Unable to log to '#{path}'. Logging to "\ "'#{system_tmp_dir}' instead. Please check the "\ "permissions for the application's (log) directory." File.join(system_tmp_dir, "appsignal.log") else $stdout.puts "appsignal: Unable to log to '#{path}' or the "\ "'#{system_tmp_dir}' fallback. Please check the permissions "\ "for the application's (log) directory." end end