public interface CyUserLog
TaskMonitor
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>
(This dependency doesn't explicitly reference Log4J but does contain necessary packages for you to use
Log4J.)
static final String NAME
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.