log even when the app is restarted to the fore ground