Module: Derelict::Utils::Logger
- Included in:
- Derelict, Box::Manager, Connection, Executer, Instance, Parser, Plugin::Manager, Derelict::Utils, VirtualMachine
- Defined in:
- lib/derelict/utils/logger.rb,
lib/derelict/utils/logger/invalid_type.rb,
lib/derelict/utils/logger/raw_formatter.rb,
lib/derelict/utils/logger/array_outputter.rb
Overview
Provides a method to retrieve a logger
Defined Under Namespace
Classes: ArrayOutputter, InvalidType, RawFormatter
Instance Method Summary collapse
-
#logger(options = {}) ⇒ Object
Retrieves the logger for this class.
Instance Method Details
#logger(options = {}) ⇒ Object
Retrieves the logger for this class
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/derelict/utils/logger.rb', line 10 def logger( = {}) = {:type => :internal}.merge() case [:type].to_sym when :external external_logger when :internal find_or_create_logger(logger_name) else raise InvalidType.new [:type] end end |