lib/appsignal.rb in appsignal-0.8.1 vs lib/appsignal.rb in appsignal-0.8.2
- old
+ new
@@ -92,14 +92,19 @@
l.formatter = Logger::Formatter.new
end
end
def start_logger(path)
- if path && File.writable?(path) && !ENV['DYNO']
+ if path && File.writable?(path) &&
+ !ENV['DYNO'] &&
+ !ENV['SHELLYCLOUD_DEPLOYMENT']
@logger = Logger.new(File.join(path, 'appsignal.log'))
@logger.formatter = Logger::Formatter.new
else
@logger = Logger.new($stdout)
+ @logger.formatter = lambda do |severity, datetime, progname, msg|
+ "appsignal: #{msg}\n"
+ end
end
@logger.level = Logger::INFO
@logger << @in_memory_log.string if @in_memory_log
end