Add #loggingEnabled

Hey there, I wanted an option to disable the logging for screenshots, maybe others could find it useful? Thanks!