* Adds a logging callback function