summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-07-10 01:39:05 +0000
committerLuke Kanies <luke@madstop.com>2005-07-10 01:39:05 +0000
commit420062d158bfd3d196fa33138f245409675c5963 (patch)
treebd46b1072694c847c6f8cce84470004bb908e4a2 /lib/puppet
parentc718044c000f3f074fefbe356e9a71f530dfda1b (diff)
downloadpuppet-420062d158bfd3d196fa33138f245409675c5963.tar.gz
puppet-420062d158bfd3d196fa33138f245409675c5963.tar.xz
puppet-420062d158bfd3d196fa33138f245409675c5963.zip
changing Log.destination to Log.destination=()
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@339 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/log.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/log.rb b/lib/puppet/log.rb
index 9eaa32682..06d7a0650 100644
--- a/lib/puppet/log.rb
+++ b/lib/puppet/log.rb
@@ -62,7 +62,11 @@ module Puppet
return @@levels.dup
end
- def Log.destination(dest)
+ def Log.destination
+ return @@logdest
+ end
+
+ def Log.destination=(dest)
if dest == "syslog" || dest == :syslog
unless defined? @@syslog
@@syslog = Syslog.open("puppet")