fix log config
make the manager registry as lazy as possible
rename $app to $container