vmiheer/IRCLogger — comment on commit 132f4abac1e9f548cbf65010ffad2b347347e391
File: IRCLogger.py line 62
By iammuneeb:

the file should be opened here only, in irc_con function. we will be giving the logfile name as -.log.
So the connection to the IRC server will be made only once, but bot is allowed to join any number of channels after that for logging, so those many files will be created when we connect to different channels.