Sha256: a074de496f433d85e91bd5df0a261370949a6b1cc58f7e5786248a70085023c6
Contents?: true
Size: 535 Bytes
Versions: 4
Compression:
Stored size: 535 Bytes
Contents
# A module to make logging a bit easier. require 'puppet/util/log' module Puppet::Util::Logging # Create a method for each log level. Puppet::Util::Log.eachlevel do |level| define_method(level) do |args| if args.is_a?(Array) args = args.join(" ") end Puppet::Util::Log.create( :level => level, :source => self, :message => args ) end end end # $Id: logging.rb 2178 2007-02-07 23:56:59Z luke $
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
puppet-0.22.4 | lib/puppet/util/logging.rb |
puppet-0.23.0 | lib/puppet/util/logging.rb |
puppet-0.23.2 | lib/puppet/util/logging.rb |
puppet-0.23.1 | lib/puppet/util/logging.rb |