pass logmode and logging prop to generateXml func
removed comment with username -oops
added lazy conditonal for setting logmode variable
added more logging options (e.g. by time/size)