public static MIssue create(LogRecord record){
  s_log.config(record.getMessage());
  MSystem system=MSystem.get(Env.getCtx());
  if (!DB.isConnected() || system == null || !system.isAutoErrorReport())   return null;
  MIssue issue=new MIssue(record);
  String error=issue.report();
  issue.saveEx();
  if (error != null)   return null;
  return issue;
}

public static MIssue create ( LogRecord record ) { s_log . config ( record . getMessage ( ) ) ; MSystem system = MSystem . get ( Env . getCtx ( ) ) ; if ( ! DB . isConnected ( ) || system == null || ! system . isAutoErrorReport ( ) ) return null ; MIssue issue = new MIssue ( record ) ; String error = issue . report ( ) ; issue . saveEx ( ) ; if ( error != null ) return null ; return issue ; }
create and report issue
