Nicer implementation of log interface.