logging completed, with some tests