move Slf4J log handler and make format pluggable