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

I have added the new option to give a custom name to the logger method instead of using the same log file name.