Removed logger from ScriptEnvironment again

This reverts commit dcf28aead4f5dbf2205bf4c2d2941bb182d793e0.