Done Refactoring,Renamed Methods and Property Names

Why you are writing to file only? And why here? You can have a class which will do this for you. You can add a method to your `Logger` class, if it suits you. Shift `AutoFlush` too.