make logging customizable