Replaced entity_delete and entity_load from main module.
Replaced hook_watchdog() with logger service.
Corrected saving arguments.
Prevent logging recursion.
Fixed loadArguments().