Parent

Methods

Included Modules

Class Index [+]

Quicksearch

Ramaze::Logger::Growl

Informer for the Growl notification system Growl lets Mac OS X applications unintrusively tell you when things happen.

Growl can be downloaded from the following website: growl.info/

Public Class Methods

new(options = {}) click to toggle source

Takes the options from the default trait for merging.

@param [Hash] options A hash containing extra options to use when

 initializing the Growl logger.
    # File lib/ramaze/log/growl.rb, line 32
32:       def initialize(options = {})
33:         options = class_trait[:defaults].merge(options).values_at(
34:           :host, :name, :all_notifies, :default_notifies, :password
35:         )
36:         
37:         super(*options)
38:       end

Public Instance Methods

log(tag, *args) click to toggle source

Integration to Logging

@param [String] tag @param [Hash] args

    # File lib/ramaze/log/growl.rb, line 46
46:       def log(tag, *args)
47:         begin
48:           notify(tag.to_s, Time.now.strftime("%X"), args.join("\n")[0..100])
49:         rescue Errno::EMSGSIZE
50:           # Send size was to big (not really), ignore
51:         end
52:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.