public void Test() { TraceLog log = new TraceLog(); log.Info("test info {0}", 1); log.Warning("test warning {0}", 2); log.Error("test error {0}", 3); log.Fatal("test fatal {0}", 4); Console.WriteLine(DateTime.Now.ToString("MM/dd/yyyy", CultureInfo.InvariantCulture)); }
private void ConfigureObjectProviders(string organizationName) { try { if (Program.InstallUtils.SelectedProviders != null) { Program.InstallUtils.InstallAdapter.ImpersonateIntegrationUser = false; var providers = Program.InstallUtils.SelectedProviders.FindAll(p => p.Name == organizationName); foreach (NameValuePair <ObjectProvider> provider in providers) { if (this.operationOption == ConfigurationOption.Install) { ObjectProvider providerDetail = provider.Value; if (providerDetail.Name.Contains(",")) { Program.InstallUtils.WriteMToMRelationshipObjectDefinition(providerDetail); } else { // Only write the object definitions if we are installing //Program.InstallUtils.WriteObjectDefinition(provider.Value); Program.InstallUtils.WriteObjectDefinition(providerDetail); } } } // Possible location of picklist object provider creation. Program.InstallUtils.WritePicklistObjectDefinition(); } } catch (FaultException <OrganizationServiceFault> ex) { TraceLog.Error(ex.Message, ex); MessageBox.Show(ex.Message, string.Format(CultureInfo.CurrentCulture, Resources.SoapExceptionCaption), MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, 0); } catch (Exception ex) { TraceLog.Error(ex.Message, ex); MessageBox.Show(ex.Message, string.Format(CultureInfo.CurrentCulture, Resources.ExceptionCaption), MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, 0); } }