JAL-3676 Documentation in Help for Java Console, Logging and Reporting Bugs
authorBen Soares <b.soares@dundee.ac.uk>
Thu, 27 Aug 2020 14:53:02 +0000 (15:53 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Thu, 27 Aug 2020 14:53:02 +0000 (15:53 +0100)
help/help/help.jhm
help/help/helpTOC.xml
help/help/html/logging.html

index 99d010d..7dbb76d 100755 (executable)
    
    <mapID target="importvcf" url="html/features/importvcf.html" />
    <mapID target="importvcf.attribs" url="html/features/importvcf.html#attribs" />
+   <mapID target="logging" url="html/logging.html" />
 </map>
index a0c7fe6..c5660fe 100755 (executable)
                        </tocitem>
                </tocitem>
                <tocitem text="Preferences" target="preferences" />
+    <tocitem text="The Java Console, Logging and Reporting Bugs" target="logging" />
                <tocitem text="Scripting with Groovy" target="groovy">
                        <tocitem text="Groovy Features Counter example" target="groovy.featurescounter"/>
                </tocitem>
index 2993370..2393c61 100644 (file)
  * The Jalview Authors are detailed in the 'AUTHORS' file.
  -->
 <head>
-<title>Logging and Reporting Bugs</title>
+<title>The Java Console, Logging and Reporting Bugs</title>
 </head>
 <body>
   <h2>
     <center>
-      <strong>Logging and Reporting Bugs</strong>
+      <strong>The Java Console, Logging and Reporting Bugs</strong>
     </center>
   </h2>
   
@@ -42,7 +42,7 @@
   <p>
   However, it is possible that some early logging information from when Jalview is initially launched, is not shown in the Java Console:
   <br/>
-  If you are using a version of Jalview installed from one of our install4j installers, then Jalview's initial launch logging can be found in
+  If you are using a standard desktop version of Jalview installed from one of our install4j installers, then Jalview's initial launch logging can be found in
   <pre>JALVIEW_APP_DIR/launcher.log</pre>
   where <em>JALVIEW_APP_DIR</em> is the directory that Jalview's application was installed into.
   <br/>
     <li>In Linux and other Unix OSes this is <em>~/opt/jalview</em> by default</li>
   </ul>
   <br/>
-  Whereas if you are using the Jalview executable jar file (also used by bioconda installations) then a minimised launcher will output logging information to STDOUT and STDERR.
+  Whereas if you are using the Jalview executable jar file (also used by bioconda installations) then the default run class (<em>jalview.bin.Launcher</em> -- a minimised launcher that will set memory and linux dpi settings before re-launching <em>jalview.bin.Jalview</em>), will output logging information to STDOUT and STDERR.
   </p>
   
   <h3><a name="java_console">Java Console and Log Level</a></h3>
-  
-  
+  <p>
+  The Java Console is opened by selecting <strong>Tools &rarr; Show Java Console</strong>.  This option is saved across Jalview sessions so you can start Jalview with the Java Console already open by previously quitting Jalview with the Java Console already opened.  Selecting <em>Show Java Console</em> in the <em>Tools</em> menu a second time will deselect the option and close the window.  Closing the window in your system's usual way will also deselect the option in the <em>Tools</em> menu.
+  </p>
+  <p>
+  The Java Console's text display always shows information about your system and Jalview installation setup, which is followed by messages output from some of the processes that your Jalview session has performed since opening the console.
+  </p>
+  <p>
+  You can control the detail of what appears as output by selecting a <em>Log level</em> using the drop-down list at the bottom left of the console.  There are several levels of logging that you can choose from: in decreasing levels of verbosity they are: TRACE, DEBUG, INFO, WARN.  By default the level initially chosen is INFO.
+  </p>
+  <p>
+  <strong>Note! If you change the log level in the Java Console, this change will only persist for as long as the console is open.  Once you close the console the log level will revert back to what it had been when you opened the console (usually INFO).</strong>
+  </p>
+  <p>
+  You can change the default log level by editing the Jalview preferenecs file, <em>.jalview_properties</em>, found in your home directory, and setting the property <em>logs.Jalview.level</em> to the log level you prefer, e.g.
+  <pre>
+  logs.Jalview.level=DEBUG
+  </pre>
+  </p>
+  <p>
+  You can also set this property to a log level not usually presented in the Java Console (though restricted to log levels used by Apache Log4j -- see <a href="https://logging.apache.org/log4j/2.x/manual/customloglevels.html">Log4j Custom Log Levels</a> for details of the standard log levels available).  Jalview does not currently define any custom log levels.<br/>
+  If you do set the property with a log level that is normally not visible in the Java Console this should be respected and visibly selected when you open the console.
+  </p>
+  <p>
+  The <em>Clear</em> button at the bottom of the console will clear all logging messages except for the initial system information which remains.
+  </p>
+  <p>
+  The <em>Copy to clipboard</em> button at the bottom right of the console will copy all of the text in the console to your system clipboard, ready to paste into another application (e.g. email composer).
+  </p>
+
   <h3>Reporting Bugs</h3>
 
+  <p>
+  If you come across a problem in Jalview where something is not working as described, or how you think it should, you should first check the <a href="https://www.jalview.org/faq">Jalview FAQ</a> to see if this is a known problem and if there is a suggested workaround.
+  </p>
+  <p>
+  If there is no FAQ answer covering your problem then you can submit a bug report on the <a href="https://issues.jalview.org/">Jalview Issue Tracker</a>.  It is good practice to search the issue tracker first to see if the issue has already been reported.  If an issue already exists please continue to add your own comments to the issue which may well help narrow down the problem, if not then you can create an account and submit a new bug report: 
+  </p>
+  <p>
+  Make sure that you set Project to <em>Jalview (JAL)</em>, and Issue Type to <em>Bug</em> or <em>New Feature</em> or <em>Improvement</em> appropriately.<br/>
+  Give a one line summary of the issue in the <em>Summary</em>.
+  <br/>
+  In the <em>Environment</em> text box you can describe the system you are using.  This is usually most easily done by opening the Java Console, clicking the <em>Clear</em> button, and then immediately on the <em>Copy to clipboard</em> button, and then pasting the clipboard into the text box.
+  </p>
+  <p>
+  You can then give more detailed information about how to recreate the problem in the <em>Description</em> text box.  If you want to attach any screenshots or example alignment files that demonstrate the problem then you can drag them to the Create Issue dialog in your browser, or use the <em>Attachment</em> browse facility to locate them on your computer.
+  </p>
+
+  <p>
+  To help the Jalview team with diagnosing a particular issue, it is really helpful if you can also add more detailed logs output whilst re-creating the problem.  To do this, open the Java Console, click the <em>Clear</em> button and select TRACE in the <em>Log level</em> drop down list.
+  <br/>
+  Whilst leaving the console open, perform the task in Jalview that re-creates the problem.
+  <br/>
+  Then you can copy the debug information in the Java Console by clicking on the <em>Copy to clipboard</em> button and then paste that into the Description, or a Comment of your issue.
+  </p>
+
+  <p>For other queries or comments about Jalview, remember you can contact the Jalview team using email via the <a href="https://www.jalview.org/mailman/listinfo/jalview-discuss">Jalview discussion list</a> or on Twitter <a href="https://twitter.com/Jalview/">@Jalview</a>!
+  </p>
 
 </body>
 </html>