Add some functions to make replacing default log package easier.