Activating Activiti Logs and possibilty to use Activiti 5.10 with Grails Activiti Plugin 5.8

455 views
Skip to first unread message

Hyoga

unread,
Sep 1, 2012, 11:23:50 PM9/1/12
to grails-acti...@googlegroups.com
Hi, 
First, I would like to thank you for all the great job you're doing with this plugin. It's amazing, really. That plugin rocks !
But I'm facing some (minor) problems. 

First, I would like to activate the Activiti logs, in order to see them in the output of Netbeans. I've done some researchs, and have tried putting "org.activiti.level="FINEST"" in the Config file. That didn't work. I'm kind of stuck.

Second, in this topic (https://groups.google.com/forum/#!topic/grails-activiti-plugin/LQpnrluLUic), you said that we could change the Activiti dependencies version from 5.9 to 5.10 at https://github.com/limcheekin/activiti/blob/master/grails-app/conf/BuildConfig.groovy. But forced to stay at the version 5.8 of the plugin (I'm using Grails 1.3.7), I dont find that file. Is there another way ? Or I have to stay at Activiti 5.8 ?

Thanks in advance


Chee Kin Lim

unread,
Sep 3, 2012, 3:06:42 AM9/3/12
to grails-acti...@googlegroups.com
Hi Hyoga,

Thanks for your interest to the plugin.

I created 5.10 released for Grails 1.3.x at http://code.google.com/p/grails-activiti-plugin/downloads/detail?name=grails-activiti-5.10.zip. Please note that the install-vacation-request-sampleapp script was broken and you need to perform thorough testing yourself for this unofficial release.

As Activiti using java.util.logging for logging, please make sure grails.logging.jul.usebridge = true in your Config.groovy.

Hope this help.

Best regards,
Chee Kin




--
 
 
 

Hyoga

unread,
Sep 3, 2012, 11:06:52 AM9/3/12
to grails-acti...@googlegroups.com
Hi,

Thanks for 5.10 version. I'm gonna take a look at it.
For the Activiti logs, grails.logging.jul.usebridge was already in true.

Thanks for your response

Chee Kin Lim

unread,
Sep 3, 2012, 11:45:20 PM9/3/12
to grails-acti...@googlegroups.com
Hi Hyoga,

After few hours of digging, try and error, I finally find out 2 ways to display Activiti log statements to console.

I tried the following ways in Grails 2.1.0:
1) The Grails way: add the following config to log4j closure in Config.groovy:
log4j = {
  root {
    info()
  }
  info 'org.activiti.engine'
  ...     
}

2) The java.util.logging way: download the logging.properties from http://grails-activiti-plugin.googlecode.com/files/logging.properties and copy it to grails-app/conf directory and execute "grails run-app --verbose".

Please try it in Grails 1.3.x and keep us inform which way is work for you.

Best regards,
Chee Kin


--
 
 
 

Hyoga

unread,
Sep 4, 2012, 6:50:20 PM9/4/12
to grails-acti...@googlegroups.com
Hi, 

Thank you kindly for your help. 
I tried both of your solutions, and I came out with the same end.

Solution 1. The only allusion about BPMN in the output is:
INFO  parser.BpmnParse  - XMLSchema currently not supported as typeLanguage
 INFO  deployer.BpmnDeployer  - Processing resource /Users/hyoga/NetBeansProjects/hradministration/./grails-app/conf/DemandeFormationCoris.bpmn20.xml

Solution 2. First I didn't have any results, so I made that change:
java.util.logging.ConsoleHandler.level=ALL

 And I ended with the same result than the Solution 1.

Actually I was hoping that kind of result: here (the second post) when I complete a task for exemple. Instead, apart of my quote above, I don't have anything else. May be what I'm getting is the correct output, in my case...

Best regards

Andy

unread,
Mar 23, 2013, 10:13:39 AM3/23/13
to grails-acti...@googlegroups.com
I've also not been able to get any logging out of the activity engine. I've tried grails.logging.jul.usebridge true and false, and both Solution 1 & 2 - nothing seems to work. Has anyone had success getting detailed logging with Grails 2.1?

Andy

Chee Kin Lim

unread,
Apr 13, 2013, 10:11:55 AM4/13/13
to grails-acti...@googlegroups.com
Hi there,

You may get some idea for make the logging of activiti engine work at http://burtbeckwith.com/blog/?p=1654

Please try it out to see whether it work.


Hope this help.

Best regards,
Chee Kin

Andy

unread,
Apr 14, 2013, 9:53:35 AM4/14/13
to grails-acti...@googlegroups.com
Yes, super-informative! Thanks Chee Kin!

 I had a feeling it was related to the bridge not passing the log level back to JUL.

Andy

Bryan Hughes

unread,
May 1, 2013, 3:11:31 PM5/1/13
to grails-acti...@googlegroups.com
Care to share how you got it working?

Andy

unread,
May 9, 2013, 1:29:00 PM5/9/13
to grails-acti...@googlegroups.com
I never got it to work except by setting it programatically..like:
java.util.logging.Logger.getLogger("org.activiti").setLevel(java.util.logging.Level.FINEST);

One decent option is to do this in BootStrap.groovy, though:

def init = { servletContext ->

environments {
production { }
development {
java.util.logging.Logger.getLogger("org.activiti").setLevel(java.util.logging.Level.FINEST);
Reply all
Reply to author
Forward
0 new messages