Problem with ActiveRecord::Base.logger

I'm using jruby and ActiveRecord in a Swing based application. Until now I used Rails 2.3.5. Today I migrated to Rails 3 which seems to work ok. The only problem I have is that I can no longer use the ActiveRecord logging. Until now I used the following code to enable logging:


if $global_enable_db_logging    ActiveRecord::Base.logger = end

Any ideas how to make this work again ?

Regards   Roger