Class Puppet::Util::Log
In: lib/puppet/util/log.rb
Parent: Object

Pass feedback to the user. Log levels are modeled after syslog‘s, and it is expected that that will be the most common log destination. Supports multiple destinations, one of which is a remote server.

Methods

Included Modules

Puppet::Util Puppet::Util::Tagging Puppet::Util Puppet::Util::ClassGen

Attributes

desttypes  [R] 
file  [RW] 
level  [R] 
line  [RW] 
message  [R] 
remote  [RW] 
source  [RW] 
time  [RW] 

Public Class methods

Reset log to basics. Basically just flushes and closes files and undefs other objects.

Create a new log message. The primary role of this method is to avoid creating log messages below the loglevel.

Yield each valid level in turn

Flush any log destinations that support such operations.

Return the current log level.

Set the current log level.

Create a new log destination.

Route the actual message. FIXME There are lots of things this method should do, like caching and a bit more. It‘s worth noting that there‘s a potential for a loop here, if the machine somehow gets the destination set as itself.

Reopen all of our logs.

Is the passed level a valid log level?

Public Instance methods

If they pass a source in to us, we make sure it is a string, and we retrieve any tags we can.

[Validate]