wm: added logtofile util