{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":{"state":"open","open_issues":1,"url":"https://api.github.com/repos/adhearsion/adhearsion/milestones/4","due_on":null,"title":"1.2.2","description":"","creator":{"avatar_url":"https://secure.gravatar.com/avatar/f9116c42e95b260f995680d301695a84?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"f9116c42e95b260f995680d301695a84","url":"https://api.github.com/users/benlangfeld","login":"benlangfeld","id":210221},"number":4,"closed_issues":1,"created_at":"2011-09-23T15:27:07Z"},"user":{"avatar_url":"https://secure.gravatar.com/avatar/057e54d9a7b6ce3614413fcab825fca8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"057e54d9a7b6ce3614413fcab825fca8","url":"https://api.github.com/users/sfgeorge","login":"sfgeorge","id":208529},"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/f9116c42e95b260f995680d301695a84?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"f9116c42e95b260f995680d301695a84","url":"https://api.github.com/users/benlangfeld","login":"benlangfeld","id":210221},"updated_at":"2011-11-17T11:36:26Z","labels":[],"closed_at":null,"comments":2,"url":"https://api.github.com/repos/adhearsion/adhearsion/issues/36","body":"I have the following logging configuration in startup.rb:\r\n\r\nconfig.logging :level => :debug, :formatter => Log4r::PatternFormatter.new(:pattern => '%5l %c %d %x %m')\r\n\r\nIf I run \"ahn start daemon .\" on Adhearsion 1.2.0, it fails to initialize.  It dies with the following error:\r\n\r\n```\r\n/Users/sgeorge/.rvm/gems/ruby-1.9.2-p180/gems/adhearsion-1.2.1/lib/adhearsion/initializer/configuration.rb:72:in `logging': undefined method `count' for #<Log4r::FileOutputter:0x007fbd31d2ec40> (NoMethodError)\r\n        from /Users/sgeorge/Code/ifbyphone/cloudvox/apptastic/config/adhearsion.rb:44:in `block in <top (required)>'\r\n        from /Users/sgeorge/.rvm/gems/ruby-1.9.2-p180/gems/adhearsion-1.2.1/lib/adhearsion/initializer/configuration.rb:28:in `configure'\r\n        from /Users/sgeorge/Code/ifbyphone/cloudvox/apptastic/config/adhearsion.rb:28:in `<top (required)>'\r\n        from /Users/sgeorge/.rvm/gems/ruby-1.9.2-p180/gems/adhearsion-1.2.1/lib/adhearsion/initializer.rb:272:in `load'\r\n        from /Users/sgeorge/.rvm/gems/ruby-1.9.2-p180/gems/adhearsion-1.2.1/lib/adhearsion/initializer.rb:272:in `block in load_all_init_files'\r\n        from /Users/sgeorge/.rvm/gems/ruby-1.9.2-p180/gems/adhearsion-1.2.1/lib/adhearsion/initializer.rb:272:in `each'\r\n        from /Users/sgeorge/.rvm/gems/ruby-1.9.2-p180/gems/adhearsion-1.2.1/lib/adhearsion/initializer.rb:272:in `load_all_init_files'\r\n        from /Users/sgeorge/.rvm/gems/ruby-1.9.2-p180/gems/adhearsion-1.2.1/lib/adhearsion/initializer.rb:147:in `start'\r\n        from /Users/sgeorge/.rvm/gems/ruby-1.9.2-p180/gems/adhearsion-1.2.1/lib/adhearsion/initializer.rb:102:in `start'\r\n        from /Users/sgeorge/.rvm/gems/ruby-1.9.2-p180/gems/adhearsion-1.2.1/lib/adhearsion/commands.rb:209:in `start'\r\n        from /Users/sgeorge/.rvm/gems/ruby-1.9.2-p180/gems/adhearsion-1.2.1/lib/adhearsion/commands.rb:29:in `execute!'\r\n        from /Users/sgeorge/.rvm/gems/ruby-1.9.2-p180/gems/adhearsion-1.2.1/bin/ahn:29:in `<top (required)>'\r\n        from /Users/sgeorge/.rvm/gems/ruby-1.9.2-p180/bin/ahn:19:in `load'\r\n        from /Users/sgeorge/.rvm/gems/ruby-1.9.2-p180/bin/ahn:19:in `<main>'\r\n```\r\n\r\nHowever, if I start up Adhearsion with either of \"ahn start .\" or \"ahn start console .\" there is no such issue.\r\n\r\nIt appears that because daemon mode has but one outputter, the AdhearsionLogger.outputters property is not an array, and so it does not have a count property.","html_url":"https://github.com/adhearsion/adhearsion/issues/36","title":"Problems using logging :formatter in daemon mode","number":36,"id":1723998,"created_at":"2011-09-23T14:55:38Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/f9116c42e95b260f995680d301695a84?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"f9116c42e95b260f995680d301695a84","url":"https://api.github.com/users/benlangfeld","login":"benlangfeld","id":210221},"updated_at":"2011-11-17T11:36:26Z","url":"https://api.github.com/repos/adhearsion/adhearsion/issues/comments/2775004","body":"There's a fix for this on the support/1.x.x branch. Please test from here to confirm.","id":2775004,"created_at":"2011-11-17T11:36:26Z"}}