Added ability to disable logging

Performance -> Advanced settings -> Disable logging

Change-Id: I268e1aedf0c6e995871fc5d6f8160005a1b8ad09