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 |
|
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
Default constructor that wraps a TextWriter
to write Saxon messages
StandardLogger
Constructor method to supply a user defined TextWriter to the logger
Parameters:
w
Property Detail
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.
Parameters:
threshold
- the minimum severity of messages to be output. UnderlyingTextWriter
Property to get the udnerlying TextWriter object.
Method Detail
asStreamResult
Java internal streamResult object wrapping the TextWriter
Returns: