Drawing and test code for log
Part of previous commit