org.fife.rsta.ac.js.Logger Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of languagesupport Show documentation
Show all versions of languagesupport Show documentation
A library adding code completion and other advanced features for Java, JavaScript, Perl, and other languages to RSyntaxTextArea.
package org.fife.rsta.ac.js;
public class Logger {
private static boolean DEBUG = false;
static
{
DEBUG = Boolean.valueOf(System.getProperty("javascript.debug")).booleanValue();
}
/**
* TODO change logging to Log4J?
* Log message to console
* @param msg
*/
public static final void log(String msg) {
if (DEBUG) {
System.out.println(msg);
}
}
public static final void logError(String msg) {
System.err.println(msg);
}
}