simple but practical log util