[MarkLogic Dev General] Specify log level for call to <xsl:message>?
dsewell at virginia.edu
Fri Feb 3 11:50:17 PST 2012
You mean like
<xsl:variable name="dummy" select="xdmp:log('MESSAGE!', 'critical')"/>
? That works fine, only it's a little inelegant IMO to have to create a dummy
variable for this purpose. On the other hand, I've certainly done the same thing
on the XQuery side often (i.e. "let $dummy := xdmp:log('something')").
But it's a good workaround.
On Fri, 3 Feb 2012, Danny Sokolsky wrote:
> Hi David,
> Why not just call xdmp:log from within your xslt instead?
> -----Original Message-----
> From: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] On Behalf Of David Sewell
> Sent: Friday, February 03, 2012 11:29 AM
> To: General Mark Logic Developer Discussion
> Subject: [MarkLogic Dev General] Specify log level for call to <xsl:message>?
> xdmp:log() takes as an optional argument a string specifying the log level (like
> "info", "notice", etc.).
> When processing XSLT, MarkLogic writes the value of <xsl:message> to the
> logfile, using the default level "info". That's a problem if someone wants to
> change server configuration to set the minimum log level to a higher priority
> (to avoid the zillions of messages about database merges, etc.)
> Is there any way to change the log level of <xsl:message> output?
> If not, maybe grounds for a feature request, for an extension attribute on
> <xsl:message> to accomplish this?
David Sewell, Editorial and Technical Manager
ROTUNDA, The University of Virginia Press
PO Box 400314, Charlottesville, VA 22904-4314 USA
Email: dsewell at virginia.edu Tel: +1 434 924 9973
More information about the General