create a configuration variable in app/config/config.yaml to disable/enable logging:

	# activity logging.
	locksso_matic_logging:
    		enabled: true

And let $logger->enable()/$logger->disable() also work as expected (you may need to disable logging
in large data imports).
Override the user name when logging in SWORD.