Moved config to mvvm

Modified Log loggic