Added the option to give the custom name for the logger method.

I have added a new option to assign a custom method for putting a log instead of using the same name of the log file and some methods are re-factored.