Class: Ramaze::Logger::Knotify

Inherits:
Object
  • Object
show all
Includes:
Ramaze::Logging
Defined in:
lib/ramaze/log/knotify.rb

Overview

Informer for the Knotify notfication system used on KDE. Doesn’t need any special libraries.

Instance Method Summary collapse

Methods included from Ramaze::Logging

#debug, #debug?, #dev, #error, #info, #shutdown, #tag_log, #warn

Instance Method Details

#log(tag, *messages) ⇒ Object

Please see for more information on the API used here: lukeplant.me.uk/articles.php?id=3



18
19
20
21
22
23
24
# File 'lib/ramaze/log/knotify.rb', line 18

def log(tag, *messages)
  present = class_trait[:present]
  tag = tag.to_s.capitalize
  messages.flatten.each do |message|
    system(%{dcop knotify default notify Ramaze "#{tag}" "#{message}" '' '' #{present} 0})
  end
end