diff options
author | Luke Kanies <luke@madstop.com> | 2005-07-10 01:39:05 +0000 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2005-07-10 01:39:05 +0000 |
commit | 420062d158bfd3d196fa33138f245409675c5963 (patch) | |
tree | bd46b1072694c847c6f8cce84470004bb908e4a2 | |
parent | c718044c000f3f074fefbe356e9a71f530dfda1b (diff) | |
download | puppet-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
-rw-r--r-- | lib/puppet/log.rb | 6 |
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") |