Fixed custom logger not being initialized correctly