Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (9 sloc) 267 Bytes
require_relative 'container_info'
class LogPrinter
def initialize container_id
@container_name = ContainerInfo.name(container_id)
end
def call type, timestamp, message
STDOUT.puts "#{@container_name} [#{type}] @ #{timestamp} | #{message}\n"
end
end