1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-05 13:18:20 +03:00
lvm2/report-generators/lib/log.rb

31 lines
385 B
Ruby
Raw Normal View History

# Merely wraps the logger library with a bit of standard policy.
require 'logger'
module Log
$log = Logger.new(STDERR)
def init(io_)
$log = Logger.new(io_)
end
end
def fatal(*args)
$log.fatal(*args)
end
def error(*args)
$log.error(*args)
end
def info(*args)
$log.info(*args)
end
def warning(*args)
$log.warn(*args)
end
def debug(*args)
$log.debug(*args)
end