summaryrefslogtreecommitdiffstats
path: root/lib/puppet/log.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/log.rb')
-rw-r--r--lib/puppet/log.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/puppet/log.rb b/lib/puppet/log.rb
index c8a44d14b..d6d2f9090 100644
--- a/lib/puppet/log.rb
+++ b/lib/puppet/log.rb
@@ -108,6 +108,10 @@ module Puppet
@loglevel = @levels.index(level)
end
+ def Log.levels
+ @levels.dup
+ end
+
# Create a new log destination.
def Log.newdestination(dest)
# Each destination can only occur once.