As for log4j.properties - remember to always update both
lib/log4j.properties and conf/log4j.properties. The first one will
normally be used, but the second one would be loaded by legacy Taverna
1 code when opening Taverna 1 workflows or possibly when opening with
'Any workflow type' filter selected (which also tries using Taverna 1
code).
The default log4j.properties is quite restrictive as to not scare
users. Here are some more useful settings for debugtging:
log4j.rootLogger=ERROR, CONSOLE, FILE
log4j.logger.net.sf.taverna.t2=WARN
#log4j.logger.net.sf.taverna.t2.ui=DEBUG
log4j.logger.your.package.name=DEBUG
#log4j.logger.org.apache.commons.httpclient=ERROR
log4j.logger.net.sf.taverna.t2.provenance=FATAL
# Uncomment to trace all SOAP traffic
#log4j.logger.org.apache.axis.transport.http.HTTPSender=DEBUG
# Default output to console
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%-5p %d{ISO8601} (%c:%L) - %m%n
log4j.appender.FILE=org.apache.log4j.RollingFileAppender
log4j.appender.FILE.File=${user.home}/taverna.log
log4j.appender.FILE.MaxBackupIndex=1
#log4j.appender.FILE.MaxFileSize=100KB
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
# Note: %c (category) and %C (class) might be different
log4j.appender.FILE.layout.ConversionPattern=%-5p %d{ISO8601} %c (%C{1}:%L) %m%n
# log to file everything INFO or above
log4j.appender.FILE.Threshold=DEBUG
On Thu, Aug 6, 2009 at 15:05, Mahmut Uludag<[email protected]> wrote:
>
> On Thu, 2009-08-06 at 11:46 +0100, Mahmut Uludag wrote:
>> i have
>> spent some time last few days to make the plugin ready. I hoped i can
>> implement it quickly as i had copies of related communications on
>> taverna email lists and a message from Alan with details of what i need
>> to do. I unfortunately haven't been successful yet. Let me move this
>> message to taverna developers list so i can get some help from taverna
>> developers.
>
> Sorry for being a headache again. I was planning to follow what Alan
> suggested sometime before in this list. I thought it would be good if i
> first make a plugin which doesn't necessarily work but i would be able
> to install it in taverna-2 (i'm using 2.1-beta-2). I had one such plugin
> based on copies of Soaplab related classes in current taverna2 code
> base. I was not able to use it until couple of hours ago but it looks
> like i'm now able to install and use it from taverna-2.
>
> The main problem i'm facing now is related to logging, playing with log
> files based on previous suggestions on the list i'm still not able to
> get any error messages logged. For now i'm able to use Eclipse remote
> debugging to trace the errors in the new plugin but it would definitely
> be good if i can get error messages logged. I would appreciate it
> someone on the list can sent me a log4j.properties file that i can copy
> it to my projects conf directory or to the conf directory of my taverna
> installation that i can get error messages logged (as i said current
> plugin is almost a copy of the one in taverna codebase which has
> logger.debug calls in relevant places). Other than error messages from
> my plugin it would be good if i can print error messages from taverna as
> well, coming to this point would has been less time consuming if i had
> any helpful error messages from taverna. it is a shame that after many
> years i don't have a good understanding of log4j :(
>
> Mahmut
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> taverna-hackers mailing list
> [email protected]
> Web site: http://www.taverna.org.uk
> Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
> Developers Guide: http://www.mygrid.org.uk/tools/developer-information
>
--
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/
Developers Guide: http://www.mygrid.org.uk/tools/developer-information