Top Level Namespace

Defined Under Namespace

Modules: Themigrator

Constant Summary collapse

UILOG =
Logger.new('ui.log')
UILOGMUTEX =
Mutex.new

Instance Method Summary collapse

Instance Method Details

#ui_log(*args) ⇒ Object



9
10
11
12
13
# File 'lib/themigrator/ui/log.rb', line 9

def ui_log(*args)
  UILOGMUTEX.synchronize do
    UILOG << args.join("\n\r") + "\n"
  end
end

#ui_log_exception(e) ⇒ Object



15
16
17
18
19
# File 'lib/themigrator/ui/log.rb', line 15

def ui_log_exception(e)
  ui_log ''
  ui_log e.inspect
  ui_log e.backtrace
end