configure logging once