initial work on the log method
Merge branch 'cleanup-log' into cleanup
merged in log api