View CRM log files for instance redeployment file:
Go to start run write %APPDATA%
Select folder Microsoft\MSCRM\Logs
Many files appear, in this case select the latest modified file.
Thanks,
Rami Heleg.
This site helps you to develop in the easy way Microsoft Dynamics CRM. Microsoft Dynamics CRM includes many examples to develop for Microsoft Dynamics CRM.
Showing posts with label Logs. Show all posts
Showing posts with label Logs. Show all posts
Sunday, October 24, 2010
Wednesday, September 30, 2009
Create log - first option in Event Viewer
Hi,
There are several options for writing logs
1. Create log in event viewer
2. Create log in file
3. Create log in entity log
Here is an example of writing log in event viewer
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
namespace WriteToEventLog {
class Program {
static void Main(string[] args) {
string eventViewerName = "EventViewerName";
string sourceName = "Project name";
string message = "My Message";
if (!EventLog.SourceExists(sourceName))
EventLog.CreateEventSource(sourceName, eventViewerName);
EventLog.WriteEntry(sourceName, message);
EventLog.WriteEntry(sourceName, message, EventLogEntryType.Warning, 1100);
EventLog.WriteEntry(sourceName, message, EventLogEntryType.Error,45454);
}
}
}
Thanks
Rami Heleg.
There are several options for writing logs
1. Create log in event viewer
2. Create log in file
3. Create log in entity log
Here is an example of writing log in event viewer
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
namespace WriteToEventLog {
class Program {
static void Main(string[] args) {
string eventViewerName = "EventViewerName";
string sourceName = "Project name";
string message = "My Message";
if (!EventLog.SourceExists(sourceName))
EventLog.CreateEventSource(sourceName, eventViewerName);
EventLog.WriteEntry(sourceName, message);
EventLog.WriteEntry(sourceName, message, EventLogEntryType.Warning, 1100);
EventLog.WriteEntry(sourceName, message, EventLogEntryType.Error,45454);
}
}
}
Thanks
Rami Heleg.
Subscribe to:
Posts (Atom)