Module: Halcyon::Logging
- Defined in:
- lib/halcyon/logging.rb,
lib/halcyon/logging/log4r.rb,
lib/halcyon/logging/logger.rb,
lib/halcyon/logging/helpers.rb,
lib/halcyon/logging/logging.rb,
lib/halcyon/logging/analogger.rb
Defined Under Namespace
Modules: Helpers Classes: Analogger, Log4r, Logger, Logging
Class Method Summary collapse
-
.set(logger = 'Logger') ⇒ Object
Sets up the Halcyon::Logger constant to reflect the logging configuration settings.
Class Method Details
.set(logger = 'Logger') ⇒ Object
Sets up the Halcyon::Logger constant to reflect the logging configuration settings.
+logger+ the name of the logging type
Configs
<tt>Halcyon.config[:logging][:type]</tt> #=> <tt>String:Logger</tt>
Logger => specifies Logger
Logging => specifies Logging
Analogger => specifies Analogger
Log4r => specifies Log4r
25 26 27 28 |
# File 'lib/halcyon/logging.rb', line 25 def set(logger = 'Logger') Halcyon.send(:remove_const, :Logger) if Halcyon.const_defined? :Logger Halcyon.const_set :Logger, Halcyon::Logging.const_get(logger.to_sym) end |