Adds the logging mode