You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And each time I enter the activity (without exiting the app, just going to another activity in it) it creates a new file. After entering two time to the activity I have
activity.0.0.log
activity.0.1.log
Is this expected behavior? Can I configure it to have only one (rotated) file?
This is because you are initialize it every single time in your activity. Create a global instance of this variable to avoid this. Best put in your application class.
Activity
dri94 commentedon Oct 9, 2018
This is because you are initialize it every single time in your activity. Create a global instance of this variable to avoid this. Best put in your application class.