Saxon.Api

 

 

Saxon.Api

Class StandardLogger


public class StandardLogger
extends net.sf.saxon.lib.Logger

The default Logger used by Saxon on the .NET platform. All messages are written by default to System.err. The logger can be configured by setting a different output destination, and by setting a minimum threshold for the severity of messages to be output.

Constructor Summary

StandardLogger ()

Default constructor that wraps a TextWriter to write Saxon messages

StandardLogger (TextWriter w)

Constructor method to supply a user defined TextWriter to the logger

 

Property Summary

 int Threshold

Set the minimum threshold for the severity of messages to be output. Defaults to net.sf.saxon.lib.Logger#INFO. Messages whose severity is below this threshold will be ignored.

 net.sf.saxon.dotnet.DotNetWriter UnderlyingTextWriter

Property to get the udnerlying TextWriter object.

 

Method Summary

 javax.xml.transform.stream.StreamResult asStreamResult()

Java internal streamResult object wrapping the TextWriter

 void println(string str, int severity)

Write the message to the TextWriter object

 

Constructor Detail

StandardLogger

public StandardLogger()

Default constructor that wraps a TextWriter to write Saxon messages

StandardLogger

public StandardLogger(TextWriter w)

Constructor method to supply a user defined TextWriter to the logger

Parameters:

w

Property Detail

Threshold

public int Threshold {get; set; }

Set the minimum threshold for the severity of messages to be output. Defaults to net.sf.saxon.lib.Logger#INFO. Messages whose severity is below this threshold will be ignored.

Parameters:

threshold - the minimum severity of messages to be output.

UnderlyingTextWriter

public net.sf.saxon.dotnet.DotNetWriter UnderlyingTextWriter {get; set; }

Property to get the udnerlying TextWriter object.

Method Detail

asStreamResult

public override javax.xml.transform.stream.StreamResult asStreamResult()

Java internal streamResult object wrapping the TextWriter

Returns:

println

public override void println(string str,
int severity)

Write the message to the TextWriter object

Parameters:

str - The message
severity - the severity of the error message