Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

The Log function writes an entry or entries to the specified server log.


void Log(
  string name,
  bool detail,
  string string1,
  string string2,
  string stringN



The logical name of the log. Note that this "name" has no relationship to the name of the physical file used to store the logs. The set of possible logical names comprises the following values.




The supplied messages are recorded as warnings in the event log.


The supplied message are recorded as errors in the event log.


The supplied messages are recorded in the debug log.


If this parameter is false, the application URI, the current date and time, and the following message headers will be recorded:

  • Method

  • Request-Uri

  • From

  • To

If this parameter is true, the entire message (except for the Content value) will be logged.


Specifies the first message to write to the log, on a separate line.


Specifies the second message to write to the log, on a separate line.



Specifies the last message to write to the log, on a separate line.


Logs of type "Event" and "Error" can be found in the server event log.

Logs of type "Debugr" are viewed using the APILogger.exe utility provided with Office Communications Server. To effectively debug your script, regular calls to Log with debug entries should be made.

The default log type is "Debugr" if name is not one of the above three types.

© 2015 Microsoft