Added logPath parameter to createlogger function
Fix for scoping
Whitespace.
Merge pull request #1 from Contegix/add-logdir-param

Add logdir param