When Developing AgileParts and AgileWorks, it is Often Desirable to Write Information to the AgilePoint Server Log

Applies To

Summary

When writing AgileParts and AgileWorks, it is often desirable to write information to the AgilePoint Server log.

Details

The code below can be used to write information about your custom AgilePart or AgileWork to the AgilePoint Server log file.

Logger.WriteLine(“YourAgilePartName: {0}”, yourLogMessge)
If you wish to write log messages only when AgilePoint Server debug mode is enabled, check WFSystem.DebugMode as follows:
if (WFSystem.DebugMode)
{
Logger.WriteLine(“YourAgilePartName: {0}”, yourLogMessge);
}