Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
 

Related Documentation

 

trace() Function (jcs and slax Namespaces)

Namespaces

http://xml.juniper.net/junos/commit-scripts/1.0http://xml.libslax.org/slax

SLAX Syntax

expr prefix:trace('expression');

XSLT Syntax

<xsl:value-of select="prefix:trace('expression')"/>

Release Information

Function introduced in Junos OS Release 7.6.

Support for the slax namespace http://xml.libslax.org/slax added in Junos OS Release 12.2.

Description

Issue a trace message, which is sent to the trace file. You must configure traceoptions under the respective script type in the configuration hierarchy in order to output a message to the trace file using the jcs:trace() function. The output goes to the configured trace file. If traceoptions is enabled, but no trace file is explicitly configured, the output goes to the default trace file for that script type.

The prefix associated with the namespace URI should be defined in the prefix-to-namespace mapping in the style sheet.

Parameters

expression

String that is output to the trace file.

Usage Examples

SLAX syntax:

expr jcs:trace('test');

XSLT syntax:

<xsl:value-of select="jcs:trace('test')"/>
 

Related Documentation

 

Published: 2013-03-05

 

Related Documentation

 

Published: 2013-03-05