Improved log library