Improve logging

Add a log event counter to make taking samples easier
Split scanning feature to use its own log
Improve CSV formating