Module: Rabbit::Logger

Extended by:
Utils
Defined in:
lib/rabbit/logger.rb,
lib/rabbit/logger/gui.rb,
lib/rabbit/logger/base.rb,
lib/rabbit/logger/stderr.rb

Defined Under Namespace

Modules: Base, Severity Classes: GUI, STDERR

Class Method Summary collapse

Methods included from Utils

arg_list, collect_classes_under_module, collect_modules_under_module, collect_under_module, combination, compute_bottom_y, compute_left_x, compute_right_x, compute_top_y, corresponding_class_under_module, corresponding_module_under_module, corresponding_objects, ensure_time, events_pending_available?, extract_four_way, find_path_in_load_path, init_by_constants_as_default_value, move_to, move_to_bottom_left, move_to_bottom_right, move_to_top_left, move_to_top_right, parse_four_way, process_pending_events, process_pending_events_proc, quartz?, require_files_under_directory_in_load_path, require_safe, split_number_to_minute_and_second, stringify_hash_key, support_console_input?, support_console_output?, syntax_highlighting_debug?, time, to_class_name, unescape_title, windows?

Class Method Details

.defaultObject



31
32
33
34
35
36
37
# File 'lib/rabbit/logger.rb', line 31

def default
  if Utils.support_console_output?
    Logger::STDERR.new
  else
    Logger::GUI.new
  end
end

.typesObject



27
28
29
# File 'lib/rabbit/logger.rb', line 27

def types
  collect_classes_under_module(self)
end