20 lines
486 B
Ruby
20 lines
486 B
Ruby
module JamRuby
|
|
class IcecastLogging < ActiveRecord::Base
|
|
include JAmXml
|
|
self.primary_key = 'id'
|
|
|
|
attr_accessible :accesslog, :errorlog, :playlistlog, :loglevel
|
|
|
|
def dumpXml (ident=1, output=$stdout)
|
|
|
|
hash = Hash["accesslog" => self.accesslog,
|
|
"errorlog" => self.errorlog,
|
|
"loglevel" => self.loglevel,
|
|
"playlistlog" => self.playlistlog]
|
|
|
|
self.jdumpXml(hash, "logging", ident, output)
|
|
|
|
end
|
|
|
|
end
|
|
end |