fix logging in signal contexts on ruby 2

use Logger on ruby 1
use MonoLogger on ruby 2