Adapt to HAPI MessageRule interfaces
add simple logger