Logging options, solves #601

Please use tabs and not spaces to indent code in ZNC.