add program_logger.rb
improvement program_logger.rb