Built-In Formatters

Console

Writes the log entries to the console.

<formatter name="Console" type="JelleDruyts.BuildCop.Formatters.Console.ConsoleFormatter" minimumLogLevel="[...]" />

This formatter has no formatter-specific configuration.

CSV

Writes the log entries to a comma-separated values (CSV) file.

<formatter name="Csv" type="JelleDruyts.BuildCop.Formatters.Csv.CsvFormatter" minimumLogLevel="[...]">
  <output fileName="[...]" launch="[true|false]" />
</formatter>

  • output: defines the output settings for this formatter.
    • fileName: the relative path and file name of the file to write.
    • launch (optional): a value of "true" or "false" that determines if the file should be launched when the report has been written.

HTML

Writes the log entries to an HTML file.

<formatter name="Html" type="JelleDruyts.BuildCop.Formatters.Html.HtmlFormatter" minimumLogLevel="[...]">
  <output fileName="[...]" launch="[true|false]" stylesheet="[...]" />
</formatter>

  • output: defines the output settings for this formatter.
    • fileName: the relative path and file name of the file to write.
    • launch (optional): a value of "true" or "false" that determines if the file should be launched when the report has been written.
    • stylesheet (optional): the relative path to the XSLT stylesheet to use. The HTML formatter reuses the XML formatter to produce an XML document and then transforms this into an HTML document using an XSLT stylesheet. By default, the "BuildCopReport.xslt" file provided with the application is used, but you can provide an alternative XSLT file here.

XML

Writes the log entries to an XML file.

<formatter name="Xml" type="JelleDruyts.BuildCop.Formatters.Xml.XmlFormatter" minimumLogLevel="[...]">
  <output fileName="[...]" launch="[true|false]" stylesheet="[...]" />
</formatter>

  • output: defines the output settings for this formatter.
    • fileName: the relative path and file name of the file to write.
    • launch (optional): a value of "true" or "false" that determines if the file should be launched when the report has been written.
    • stylesheet (optional): the path to the XSLT stylesheet to reference as a processing instruction inside the XML file. You can use the "BuildCopReport.xslt" file provided with the application (or an alternative XSLT file), so that a web browser displays the XML file in a human-readable way.

Last edited Feb 5, 2008 at 9:07 PM by jelled, version 1

Comments

No comments yet.