Making TrueApi Logger Aware

This makes possible API consumers to use different logging mechanism other than log-file.