Jovy's changes
Bug fixes to custom logging to account for applicationsubmitBefore