log cleaned up after 1000000 entries