Hello, I'm trying to figure out how to do some logging (in plugin) in the right JIRA way (if it is possible) through JavaScript. As I understood Jira uses the log4j logging module (with ViewLogging.jspa where you can set logging level). Is there any simple and effective way how to achieve this kind of functianility ("communication" wih ViewLogging.jspa page) from js? Or are there any ways how to do the logging from js (ideally in a way it could be accessible via GUI)?
Thank you for your ideas.
The logging and the javascript are done in different places, so you'll need to think about how those two parts talk to each other.
You're right about log4j logging inside Jira, you can (and should, because it's built in and pretty standard) use that to record what you need to. But you're going to need to think about how your plugin gets stuff to log from the javascript.
Javascript is run on the user's machine in the browser. So if you are trying to log what it's doing there, you'll need to think about how the javascript feeds the information back to your plugin in Jira so it can be written. Most javascript doesn't bother logging in this way, it's used to present stuff to people and then poke the server to do things, and it's usually the "do things" that people are interested in logging, not the js on the browser.
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.