Changed sandboxId type to string, added automatic check if logging works for training events and commands.