Package org.cytoscape.application
Interface CyUserLog
-
public interface CyUserLog
This contains the name of the user log. Issuing info, warning, and error (severe) messages to the user log will appear in the status bar and task history window. The user log is only for issuing non-blocking messages to the user outside the scope of a task. If you need to issue non-blocking messages inside a task, you can useTaskMonitor
instead.Note: the user log must be used only to issue informational messages to the user. Please do not use the user log to issue debugging messages that are only relevent to developers.
Example using the Log4J system:
import org.cytoscape.applcation.CyUserLog; import org.apache.log4j.Logger; ... final Logger logger = Logger.getLogger(CyUserLog.NAME); logger.info("Filing TPS report with new cover sheet..."); logger.warn("Did you see the memo about this?"); logger.error("I'm going to need you to go ahead and come in on Sunday too.");
Note that you will need to add the Pax Logging dependency to your pom file to use Log4J:
<dependency> <groupId>org.ops4j.pax.logging</groupId> <artifactId>pax-logging-api</artifactId> <version>1.5.2</version> <scope>provided</scope> </dependency>
-
-
Field Detail
-
NAME
static final String NAME
Use this name to obtain the user log.- See Also:
- Constant Field Values
-
-