1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class Logging
  def initialize
    @brief_help = 'Core Logging Class'
    super
    @timestamp = true
  end
  
  def puts(str)
    Kernel::puts("#{timestamp}#{str}")
  end

  def timestamp
    @timestamp ? Time.now.strftime(' %Y-%m-%d %H:%m:%S  ') : ''
  end
end