added support for plugin log to show generator errors in error log
added logging for generator
fixed class cast exception in generator