loggin with json config