[Mathlib-commitlog] SF.net SVN: mathlib:[728] JMathLib/trunk/src/jmathlib/core/interpreter/ ErrorLo
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2009-01-23 15:27:06
|
Revision: 728
http://mathlib.svn.sourceforge.net/mathlib/?rev=728&view=rev
Author: st_mueller
Date: 2009-01-23 15:27:04 +0000 (Fri, 23 Jan 2009)
Log Message:
-----------
rearranched code
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/core/interpreter/ErrorLogger.java
Modified: JMathLib/trunk/src/jmathlib/core/interpreter/ErrorLogger.java
===================================================================
--- JMathLib/trunk/src/jmathlib/core/interpreter/ErrorLogger.java 2009-01-23 13:53:13 UTC (rev 727)
+++ JMathLib/trunk/src/jmathlib/core/interpreter/ErrorLogger.java 2009-01-23 15:27:04 UTC (rev 728)
@@ -8,16 +8,31 @@
/**stores the size of indent for the next line*/
private static int indentSize = 0;
-
/**flags wether text should be indented*/
private static boolean displayIndent = false;
+ /**flag for logging mode of JMathLib*/
+ private static boolean debugB = false;
+
+ /**@return the setting of the debug flag*/
+ public static boolean getDebug()
+ {
+ return debugB;
+ }
+
+ /**sets the debug flag
+ @param _debug = should debug information be displayed*/
+ public static void setDebug(boolean _debug)
+ {
+ debugB = _debug;
+ }
+
/**display a debug line to the standard output and the file MathLib.log
@param text = the text to display*/
public static void debugLine(String text)
{
- if(getDebug())
+ if(debugB)
{
//if(displayIndent)
// text = text + ";" + indentSize;
@@ -33,9 +48,11 @@
}
catch(IOException error)
{
+ System.out.println("ERROR LOGGER: IOException");
}
catch(SecurityException error)
{
+ System.out.println("ERROR LOGGER: SecurityException");
}
System.out.println(text);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|