Fix logging to be library appropriate.