Sha256: 2dc57760e9e1ecc54e434a451a7c0e33c2dbcccff54c6b39d3d3d1d8c064baed

Contents?: true

Size: 806 Bytes

Versions: 16

Compression:

Stored size: 806 Bytes

Contents

require_relative './htmllog.rb'
require_relative './jsonlog.rb'
require_relative './yamllog.rb'

class Logger
	@@timers=Hash.new
	@@html_log=HtmlLog.new
  @@json_log=JsonLog.new
  @@yaml_log=YamlLog.new
	def self.start_task task
		@@timers[task]=Timer.new
		Console.announce_task_start task
		@@html_log.start_task task
  	end

  	def self.end_task task
  		elapsed=@@timers[task].elapsed
  		@@html_log.end_task task
  	end

  	def self.finalize
  		@@html_log.finalize
      @@json_log.finalize
      @@yaml_log.finalize
  	end

  	def self.start_command command
      Console.start_command command
      //
      @@html_log.start_command command
  	end

  	def self.end_command command
      Console.end_command command
      @@html_log.end_command command
  	end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dev_tasks-1.0.38 lib/logger.rb
dev_tasks-1.0.27 lib/logger.rb
dev_tasks-1.0.26 lib/logger.rb
dev_tasks-1.0.25 lib/logger.rb
dev_tasks-1.0.24 lib/logger.rb
dev_tasks-1.0.23 lib/logger.rb
dev_tasks-1.0.22 lib/logger.rb
dev_tasks-1.0.21 lib/logger.rb
dev_tasks-1.0.20 lib/logger.rb
dev_tasks-1.0.19 lib/logger.rb
dev_tasks-1.0.18 lib/logger.rb
dev_tasks-1.0.17 lib/logger.rb
dev_tasks-1.0.16 lib/logger.rb
dev_tasks-1.0.15 lib/logger.rb
dev_tasks-1.0.14 lib/logger.rb
dev_tasks-1.0.13 lib/logger.rb