padrino/padrino-framework — Issue #799: Lumberjack as logger: undefined method `log_static'
Author: mmack
Created: 2012-03-05 13:05:25+00:00
State: open

boot.rb, before_load:

`````
device = case PADRINO_ENV
when "test" then Lumberjack::SyslogDevice.new(:facility => Syslog::LOG_LOCAL3)
else Lumberjack::SyslogDevice.new(:facility => Syslog::LOG_LOCAL3, :options => Syslog::LOG_PERROR)
end

logger = case PADRINO_ENV
when "production" then Lumberjack::Logger.new(device, :progname => "user-business-page", :level => :debug)
when "staging" then Lumberjack::Logger.new(device, :progname => "user-business-page", :level => :debug)
when "development" then Lumberjack::Logger.new(device, :progname => "user-business-page", :level => :debug)
else Lumberjack::Logger.new(device, :progname => "user-business-page", :level => :debug)
end

Padrino.logger = logger

`````

`````

E, [2012-03-05T13:47:55.737466 #5342] ERROR -- : app error: undefined method `log_static' for # (NoMethodError)
E, [2012-03-05T13:47:55.737524 #5342] ERROR -- : /home/user/web.user-bussiness.de/htdocs/staging/shared/bundle/ruby/1.9.1/gems/padrino-core-0.10.6.e/lib/padrino-core/logger.rb:395:in `log'
E, [2012-03-05T13:47:55.737571 #5342] ERROR -- : /home/user/web.user-bussiness.de/htdocs/staging/shared/bundle/ruby/1.9.1/gems/padrino-core-0.10.6.e/lib/padrino-core/logger.rb:389:in `call'
E, [2012-03-05T13:47:55.737614 #5342] ERROR -- : /home/user/web.user-bussiness.de/htdocs/staging/shared/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `block in call'
E, [2012-03-05T13:47:55.737657 #5342] ERROR -- : /home/user/web.user-bussiness.de/htdocs/staging/shared/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1416:in `synchronize'
E, [2012-03-05T13:47:55.737699 #5342] ERROR -- : /home/user/web.user-bussiness.de/htdocs/staging/shared/bundle/ruby/1.9.1/gems/sinatra-1.3.2/lib/sinatra/base.rb:1334:in `call'
E, [2012-03-05T13:47:55.737741 #5342] ERROR -- : /home/user/web.user-bussiness.de/htdocs/staging/shared/bundle/ruby/1.9.1/gems/padrino-core-0.10.6.e/lib/padrino-core/router.rb:83:in `block in call'
E, [2012-03-05T13:47:55.737788 #5342] ERROR -- : /home/user/web.user-bussiness.de/htdocs/staging/shared/bundle/ruby/1.9.1/gems/padrino-core-0.10.6.e/lib/padrino-core/router.rb:76:in `each'
E, [2012-03-05T13:47:55.737833 #5342] ERROR -- : /home/user/web.user-bussiness.de/htdocs/staging/shared/bundle/ruby/1.9.1/gems/padrino-core-0.10.6.e/lib/padrino-core/router.rb:76:in `call'
E, [2012-03-05T13:47:55.737876 #5342] ERROR -- : /home/user/web.user-bussiness.de/htdocs/staging/shared/bundle/ruby/1.9.1/gems/unicorn-4.2.0/lib/unicorn/http_server.rb:530:in `process_client'
E, [2012-03-05T13:47:55.737917 #5342] ERROR -- : /home/user/web.user-bussiness.de/htdocs/staging/shared/bundle/ruby/1.9.1/gems/unicorn-4.2.0/lib/unicorn/http_server.rb:604:in `worker_loop'
E, [2012-03-05T13:47:55.737959 #5342] ERROR -- : /home/user/web.user-bussiness.de/htdocs/staging/shared/bundle/ruby/1.9.1/gems/unicorn-4.2.0/lib/unicorn/http_server.rb:487:in `spawn_missing_workers'
E, [2012-03-05T13:47:55.738059 #5342] ERROR -- : /home/user/web.user-bussiness.de/htdocs/staging/shared/bundle/ruby/1.9.1/gems/unicorn-4.2.0/lib/unicorn/http_server.rb:137:in `start'
E, [2012-03-05T13:47:55.738103 #5342] ERROR -- : /home/user/web.user-bussiness.de/htdocs/staging/shared/bundle/ruby/1.9.1/gems/unicorn-4.2.0/bin/unicorn:121:in `'
E, [2012-03-05T13:47:55.738146 #5342] ERROR -- : /home/user/web.user-bussiness.de/htdocs/staging/shared/bundle/ruby/1.9.1/bin/unicorn:19:in `load'
E, [2012-03-05T13:47:55.738188 #5342] ERROR -- : /home/user/web.user-bussiness.de/htdocs/staging/shared/bundle/ruby/1.9.1/bin/unicorn:19:in `

'
````

Maybe someone can help us out here...
Thanks,
Max