Cleaned up the log library.