Added logging facility for CLI applications