How can I debug or log my own Jira service?
I am developping in eclipse and when I am debugging my JUnit test, I get the error "ComponentAccessor has not been initialised.". I tried to log: "Logger.getInstance(getClass()).error(e.getMessage());".
If you are using log4j or slf4j you will need a log4j.properties (or xml) in your src/test/resources path so it knows how to log
I want to log while the service is running within Jira.
Actually there is logged:
2013-04-26 10:56:48,878 QuartzWorker-1 DEBUG ServiceRunner [atlassian.jira.service.ServiceRunner] Running Service [Container: main.java.com.me.services.MyService delay [60000ms]]
2013-04-26 10:56:48,894 QuartzWorker-1 ERROR ServiceRunner MyService [com.me.services.MyService]
2013-04-26 10:56:48,894 QuartzWorker-1 DEBUG ServiceRunner [atlassian.jira.service.ServiceRunner] Finished Running Service [Container: main.java.com.me.services.MyService delay [60000ms]]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I want to log while the service is running within Jira.
Actually there is logged:
2013-04-26 10:56:48,878 QuartzWorker-1 DEBUG ServiceRunner [atlassian.jira.service.ServiceRunner] Running Service [Container: main.java.com.me.services.MyService delay [60000ms]]
2013-04-26 10:56:48,894 QuartzWorker-1 ERROR ServiceRunner MyService [com.me.services.MyService]
2013-04-26 10:56:48,894 QuartzWorker-1 DEBUG ServiceRunner [atlassian.jira.service.ServiceRunner] Finished Running Service [Container: main.java.com.me.services.MyService delay [60000ms]]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.