Sha256: b69a78d839c5ce43b8e41f9b6a1795b3d678aa9d20f4e345d98de29935c746b6
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
#!/usr/bin/env ruby # Copyright Ultragreen (c) 2005 #--- # Author : Romain GEORGES # type : class definition Ruby # obj : Generic config library #--- # $Id$ require 'rubygems' require 'logger' require 'methodic' module Carioca module Services class InternalLogger < Logger private # constructor type could be a section name in <get_sections> result # override could be true of false and precise if the block of the application have # to override the main config hash result, default is true def initialize(_options) options = Methodic.get_options(_options) options.specify_default_value_of :target => STDOUT options.validate! super(options[:target]) end def garbage self.close end end end end # interactive hacks if $0 == __FILE__ then puts "#{File::basename(__FILE__)}:" puts 'this is a RUBY library file' puts "Copyright (c) Ultragreen" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
carioca-0.1 | lib/services/logger.rb |