Added flush() for logger objects, creating a new file for systemtime