Added flag to enable logging
enable logging