mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
13 lines
212 B
Ruby
Executable file
13 lines
212 B
Ruby
Executable file
require 'rubygems' unless defined?(Gem)
|
|
|
|
class Logger
|
|
def initialize
|
|
end
|
|
|
|
def log level, string
|
|
time = Time.new
|
|
stamp = time.strftime('%Y-%m-%d %H:%M:%S')
|
|
puts "[#{stamp}] #{string}"
|
|
end
|
|
end
|
|
|