This may happen because the default logger level in Artifactory is set to
WARN.
Try using log.warn or set a logger for the plugin in logback.xml. The name
of your plugin class is printed out when Artifactory reloads the plugin.

On Thu, Mar 7, 2013 at 8:18 AM, dtle <[email protected]> wrote:

> Hi,
>
> I am trying to catch download event through a user plugin. I have the below
> script under the /plugins directory and restart the artifactory.
> Artifactory log indicate that the script loaded.
>
> But when I try to download an artifact, I check the artifactory log but I
> didn't see the log print statements.
> I am using artifactory version 2.6.5
>
> What am I doing wrong here?  Please advise.
>
> myDownloadTest.groovy
> --------------
>
> import org.artifactory.repo.RepoPath
> import org.artifactory.request.Request
>
> download {
>    altResponse { request, responseRepoPath ->
>             log.info "I am in download"
>             log.info "My responsePath -> ${responseRepoPath.name}"
>
>     }
> }
>
>
>
> --
> View this message in context:
> http://forums.jfrog.org/artifactory-user-plugin-download-event-not-trigger-tp7578640.html
> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to