Page tree
Skip to end of metadata
Go to start of metadata

The Print To Error Stage component is a debugging stage which prints the Job plus the job's object data either to the error stream or to a file.

Print to Error
Factory Namecom.searchtechnologies.aspire:aspire-tools
subType

printToError

InputsThe entire job.
OutputsThe job is written either to system error, or to a file.

Configuration

ElementTypeDefaultDescription
printContentbooleanfalseIf true, prints the object['contentBytes'] either to the error stream or to the output file. The object['contentBytes'] may be the location where raw file data is stored, if it is not being read via an input stream.
outputFileNameStringnullSpecifies the file name to which the job (and content bytes, if specified) will be written instead of the system error output.
outputOnDebugOnlybooleanfalseIf true, all output functionality is disabled unless debugging is turned on for this component. This allows the component to be configured in the pipeline, but "turned off" by default. The component can then be turned on by using the web interface to turn on debugging for this component.

Example Configuration

Simple

<component name="printToError" subType="printToError" factoryName="aspire-tools"/>

Complex

<component name="printToFile" subType="printToError" factoryName="aspire-tools">
  <printContent>true</printContent>
  <outputFile>arcDebug.out</outputFile>
  <outputOnDebugOnly>true</outputOnDebugOnly>
</component>

Example Output

PRINT-TO-ERROR(component=/feedOneExample/standard-pipe-manager/printToFile,jobId=null): 

<doc>
    <fetchUrl>http://www.searchtechnologies.com</fetchUrl>
    <httpResponse code="200" source="FetchURLStage">OK</httpResponse>
    <protocol source="FetchURLStage/protocol">http</protocol>
    <host source="FetchURLStage/host">www.searchtechnologies.com</host>
    <mimeType source="FetchURLStage/mimeType">text/html</mimeType>
    <encoding source="FetchURLStage/encoding">utf-8</encoding>
    <extension source="FetchURLStage">
        <field name="status">HTTP/1.1 200 OK</field>
        <field name="Date">Wed, 09 Dec 2009 23:52:25 GMT</field>
        <field name="Server">Microsoft-IIS/6.0</field>
        <field name="X-Powered-By">ASP.NET</field>
        <field name="X-AspNet-Version">2.0.50727</field>
        <field name="Set-Cookie">ASP.NET_SessionId=orgtug55fexqos2cyu3re155; path=/; HttpOnly</field>
        <field name="Cache-Control">private</field>
        <field name="Content-Type">text/html; charset=utf-8</field>
        <field name="Content-Length">9607</field>
    </extension>
    <title source="ExtractTextStage/title">Search Technologies: The independent enterprise search experts</title>
    <description source="ExtractTextStage/description">We advise companies on enterprise search product selection, and we provide efficient, 
cost effective implementation and integration services. Search Technologies are the experts in the search space.</description> <language source="ExtractTextStage/language">en</language> <extension source="ExtractTextStage"> <field name="Content-Language">en</field> <field name="Content-Encoding">ISO-8859-1</field> <field name="resourceName">http://www.searchtechnologies.com</field> </extension> <content source="ExtractTextStage"><![CDATA[ Home About Us Executive Team Careers . . . </content> <domainName source="ExtractDomainImpl">searchtechnologies.com</domainName> </doc>
  • No labels