logger with various levels
Merging logging improvements to main
squelch logging during test mode