Improved logging mechanism within the library.