Add Loggers and fix string formatting problem
Fix logging problem