jimsynz / faye-rails

Simple Rails glue for the Faye messaging protocol.
MIT License
435 stars 79 forks source link

How to enable logging #94

Open VitalyKolchenko opened 7 years ago

VitalyKolchenko commented 7 years ago

Sorry for stupid question (I'm not ruby developer) but how to enable faye logging ?

Trying

config.middleware.use FayeRails::Middleware, mount: '/faye', :timeout => 25 do
  FayeRails.logger = Logger.new(STDOUT)
end

but does not work

profeg commented 7 years ago

try Faye.logger = Rails.logger

kostyakch commented 6 years ago

Faye.logger = ActiveSupport::Logger.new(Rails.root.join('log', 'faye.log'))