configure logging at runtime