    # File lib/chef/solr/application/solr.rb, line 185
            def setup_application
              assert_solr_installed!
              assert_valid_schema!

              # Need to redirect stdout and stderr so Java process inherits them.
              # If -L wasn't specified, Chef::Config[:log_location] will be an IO
              # object, otherwise it will be a String.
              #
              # Open this as a privileged user and hang onto it
              if Chef::Config[:log_location].kind_of?(String)
                @logfile = File.new(Chef::Config[:log_location], "a")
              end

              Chef::Log.level = Chef::Config[:log_level]

              Chef::Daemon.change_privilege
            end