Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 01330ec25d
Fetching contributors…

Cannot retrieve contributors at this time

56 lines (42 sloc) 1.572 kb
__NAME__ purpose
route error messages to different files, based on message content or arbitrary tag
__NAME__ synopsis
<arg choice='plain'><replaceable>tag_or_message</replaceable></arg>
<arg choice='plain'><replaceable>filename</replaceable></arg>
__NAME__ description
The directive allows routing error messages to different files, based on
either message content or an arbitrary tag.
This allows us to add message "routing" information at a single place
in the catalog configuration, instead of having to provide
<arg choice='plain'>file</arg> attribute to each invocation of
error-related tags of functions.
__NAME__ notes
Specification of <literal>tag=</literal> does not currently work with
<literal>[log type=error]...[/log]</literal>.
__NAME__ missing
In examples, show how exactly would you call [error] tag (or whatever) to see ErrorDestination in practice
__NAME__ see also
__NAME__ example: Routing error messages based on error message
ErrorDestination "Attempt to order missing product code: %s" logs/missing_products.log
ErrorDestination "search error: %s" logs/search_errors.log
__NAME__ example: Routing error messages based on an arbitrary tag
ErrorDestination missing_code logs/missing_product.log
__NAME__ example: Logging in Perl and specifying a custom tag
::logError( 'Bad search column ' . $_, { tag => 'search' } );
Jump to Line
Something went wrong with that request. Please try again.