Make logging of metrics a bit more concise and get rid of some extra precision
Improve logging and provide more control over what goes into the log; added error codes to correlate exceptions to log messages; avoid some extra string builders