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