lib/plezi/base/logging.rb in plezi-0.7.5 vs lib/plezi/base/logging.rb in plezi-0.7.6

- old
+ new

@@ -19,13 +19,11 @@ # create and set the logger object. accepts: # log_file:: a log file name to be used for logging # copy_to_stdout:: if false, log will only log to file. defaults to true. def create_logger log_file = STDOUT, copy_to_stdout = false - @copy_to_stdout = false - @copy_to_stdout = ::Logger.new(STDOUT) if copy_to_stdout + @copy_to_stdout = ( copy_to_stdout ? (::Logger.new(STDOUT)) : false ) @logger = ::Logger.new(log_file) - @logger end alias :set_logger :create_logger # writes a raw line to the log\ def log_raw line