diff options
author | Luke Kanies <luke@madstop.com> | 2005-06-28 00:15:27 +0000 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2005-06-28 00:15:27 +0000 |
commit | 2b3b15ed777574cca28f8c681053de0d0bd2a461 (patch) | |
tree | 540505c476fd955fd52b55a489e408864e4a5068 | |
parent | 8395639022bfc42e2c50d0298c2fd28c65d17275 (diff) | |
download | puppet-2b3b15ed777574cca28f8c681053de0d0bd2a461.tar.gz puppet-2b3b15ed777574cca28f8c681053de0d0bd2a461.tar.xz puppet-2b3b15ed777574cca28f8c681053de0d0bd2a461.zip |
temporary changes to prepare for a rename
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@309 980ebf18-57e1-0310-9a29-db15c13687c0
-rw-r--r-- | lib/puppet/message.rb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/puppet/message.rb b/lib/puppet/message.rb index 866ac16c4..e9d2066f9 100644 --- a/lib/puppet/message.rb +++ b/lib/puppet/message.rb @@ -7,21 +7,19 @@ module Puppet # each level of message prints in a different color class Message @@messages = Array.new - @@levels = [ :debug, :verbose, :notice, :warning, :error ] @@colors = { :debug => SLATE, - :verbose => ORANGE, + :info => ORANGE, :notice => PINK, :warning => GREEN, - :error => YELLOW + :err => YELLOW, + :alert => RESET, + :emerg => RESET, + :crit => RESET } attr_accessor :level, :message, :source - def Message.loglevels - return @@levels - end - def initialize(args) unless args.include?(:level) && args.include?(:message) && args.include?(:source) |