Module: WipeOut::Plugins::Logger

Includes:
WipeOut::Plugin
Defined in:
lib/wipe_out/plugins/logger.rb

Overview

Logger plugin module to be used by including it in the plan. When it runs, it prints out debug logs using WipeOut::Config.logger

Examples:

WipeOut.build_plan do
  plugin WipeOut::Plugins::Logger
  wipe_out :name
end
[WipeOut] start plan=Plan(User, attributes=[:name])
[WipeOut] executing plan=Plan(User, attributes=[:name]) record_class=User id=#{user.id}
[WipeOut] wiped out plan=Plan(User, attributes=[:name]) record_class=User id=#{user.id}
[WipeOut] completed plan=Plan(User, attributes=[:name])