private void LogException(Exception e, LogsTypes typeOfError) { Trace.WriteLine( String.Format(@"Error on thread loop of thread {0} instance {1} " + e, Name, RoleEnvironment.CurrentRoleInstance), EnumUtils.AsString(typeOfError)); }