[
https://issues.apache.org/jira/browse/SOLR-1716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12798884#action_12798884
]
Uri Boness commented on SOLR-1716:
----------------------------------
yeah, I thought about the global context as well, but this was just something
that I implemented anyway (as I needed it myself) and it works. You don't have
to supply the logger, but if you do you need to specify the full method
signature, that is:
{code}
function(row, context, logger) {
}
{code}
but the following will work as well:
{code}
function(row, context) {
}
{code}
and
{code}
function(row) {
}
{code}
> Add logging support for ScriptTransformer
> -----------------------------------------
>
> Key: SOLR-1716
> URL: https://issues.apache.org/jira/browse/SOLR-1716
> Project: Solr
> Issue Type: Improvement
> Components: contrib - DataImportHandler
> Reporter: Uri Boness
> Fix For: 1.5
>
> Attachments: SOLR-1716.patch
>
>
> Currently it's very hard to debug the logic embedded in the script ran by the
> ScriptTransformer. There should be a possibility to add a logger to the
> function signature, which can be used for logging.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.