Output version at the top of every log

This commit is contained in:
Mitchell Hashimoto 2012-02-22 10:00:19 -08:00
parent 63cdd65c0d
commit 2f420705da
1 changed files with 3 additions and 1 deletions

View File

@ -1,9 +1,10 @@
require 'log4r'
# Enable logging if it is requested. We do this before
# anything else so that we can setup the output before
# any logging occurs.
if ENV["VAGRANT_LOG"] && ENV["VAGRANT_LOG"] != ""
# Require Log4r and define the levels we'll be using
require 'log4r'
require 'log4r/config'
Log4r.define_levels(*Log4r::Log4rConfig::LogLevels)
@ -52,6 +53,7 @@ require 'openssl'
# Always make the version available
require 'vagrant/version'
Log4r::Logger.new("vagrant::global").info("Vagrant version: #{Vagrant::VERSION}")
module Vagrant
autoload :Action, 'vagrant/action'