Mercurial > hg > digilib-old
diff servlet/src/digilib/Utils.java @ 59:8d9a0abf3626
Utils now has a setter for debugLevel. DocumentBean now properly sets
the debug level.
New class DigilibRequest as an object to represent a request. Mostly for
use in JSP as a local object.
(ROC)
author | robcast |
---|---|
date | Wed, 28 Aug 2002 20:00:21 +0200 |
parents | 0ff3ede32060 |
children | d493563ef672 |
line wrap: on
line diff
--- a/servlet/src/digilib/Utils.java Tue Aug 27 13:28:46 2002 +0200 +++ b/servlet/src/digilib/Utils.java Wed Aug 28 20:00:21 2002 +0200 @@ -28,13 +28,20 @@ public Utils(int dbg) { debugLevel = dbg; } - + + public static int debugLevel = 10; + public void setDebugLevel(int lvl) { + debugLevel = lvl; + } + public int getDebugLevel() { + return debugLevel; + } + /** * Debugging help * dprintln(1, "blabla"); * will be printed on stdout if debug >= 1 */ - public static int debugLevel = 10; public static void dprintln(int dbg, String s) { if (debugLevel >= dbg) { String ind = "";