All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fife.rsta.ac.js.Logger Maven / Gradle / Ivy

Go to download

A library adding code completion and other advanced features for Java, JavaScript, Perl, and other languages to RSyntaxTextArea.

There is a newer version: 3.3.0
Show newest version
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);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy