configure logging

rework #1