log
XML Utilities
Release Notes
attachGoldenThread
cast
copy
cutGoldenThread
cwu
delete
dpml
dump
entrypoint
exists
expire
fls
guid
hotRestart
HTTPCookie
HTTPRedirect
isUnix
locationToXPath
lock/unlock
log
loglevel
luceneIndex
luceneSearch
mapper
mapper-export
md5
mls
netkernel:*
new
Orchextra
org.ten60.util.aspell
org.ten60.util.image.SVG2PNG
org.ten60.util.image.Text2PNG
org.ten60.util.image.xchart
plainTextToXHTML
regex
relativizeURI
requestWithArgs
resolveURI
serialize
sleep
sqlBatch
sqlBooleanQuery
SQLEncodeElement
SQLEscapeXML
sqlQuery
sqlUpdate
stm
stopWatch
StringToCanonicalString
throw
toRelaxNG
trace
validateDTD
validateRNG
validateSchematron
validateXSD
xacml
xform
XHREFlinker
XHTMLredirect
XHTMLTidy
xinclude
xmltidy
xpatheval
xpur
xquery
xrl
xsign
xslfo-fop
xslfo-fop
xslt
xverify
License
Change History
NetKernel History
Acknowledgements

log

Used to serialize an XML resource to the log (including console).

Module

urn:org:ten60:netkernel:ext:xml:ura

Definition

Format

<instr>
  <type>log</type>
  <operand>foo.xml</operand>
  <operator>
    <log>
      <string />
    </log>
  </operator>
</instr>

Syntax

ElementRulesDescription
typeMandatory log
operandMandatory the resource to be serialized to the log
operatorOptional optional configuration document

The log accessor is used to serialize the operand resource to the system log. It is useful for debuging, for critical failure reports or for status messages. System loggers are configured by the administrator. Log entries created using this accessor are created at the APPLICATION level.

Operator Syntax

The log accessor takes an optional operator.

If the /log/string element exists then the text of the root element of the operand is serialized. If it doesn't exist or there is no operator then the whole operand is serialized to the log.

Example

Write a Message to the Log

<instr>
  <type>log</type>
  <operand>
    <message>Entering critical processing section</message>
  </operand>
  <operator>
    <log>
      <string />
    </log>
  </operator>
</instr>

An example of writing a message to the log


(C) 2003, 1060 Research Limited
© 2003,2004, 1060® Research Limited
1060 registered trademark, NetKernel trademark of 1060 Research Limited