add support for multiple logging profiles
add more tests for ProfileManager