Sha256: dc6487176056f513ec26a2743db075ac44f444417e5b1485682d0e91f91a119d
Contents?: true
Size: 831 Bytes
Versions: 1
Compression:
Stored size: 831 Bytes
Contents
require "filum/version" require "filum/filum_error" require "filum/configuration" require "filum/logger" module Filum # Filum configuration settings. # # Settings should be set in an initializer or using some # other method that insures they are set before any # Filum code is used. They can be set as followed: # # Filum.config.logfile = "/var/log/mylogfile.log" # # The following settings are allowed: # # * <tt>:logfile</tt> - The logfile def self.config @config ||= Configuration.new if block_given? yield @config else @config end end # Filum logger. # # Logger. Log in the following way: # # Filum.logger.info "Log this" # def self.logger @logger ||= Filum::Logger.new(Filum.config.logfile) @logger.level = Logger::INFO @logger end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
filum-0.0.1 | lib/filum.rb |