extended general logging capabilities and added them to generate_smooth_pyxelmask.py.