a simple node file logger