Moved shared Log instance to top-level so that all classes in the

samskivert package can make use of it. Having one log instance for the
whole samskivert package seems more reasonable at present than one log
instance for each of the subpackages.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@68 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2001-03-02 01:22:07 +00:00
parent 878234e6f8
commit 6178cba159
6 changed files with 13 additions and 10 deletions
@@ -1,16 +1,16 @@
// //
// $Id: Log.java,v 1.3 2001/03/01 21:06:22 mdb Exp $ // $Id: Log.java,v 1.1 2001/03/02 01:22:07 mdb Exp $
package com.samskivert.webmacro; package com.samskivert;
/** /**
* A placeholder class that contains a reference to the log object used by * A placeholder class that contains a reference to the log object used by
* the webmacro package. * the samskivert package.
*/ */
public class Log public class Log
{ {
public static com.samskivert.util.Log log = public static com.samskivert.util.Log log =
new com.samskivert.util.Log("com.samskivert.webmacro"); new com.samskivert.util.Log("samskivert");
/** Convenience function. */ /** Convenience function. */
public static void debug (String message) public static void debug (String message)
@@ -1,8 +1,9 @@
# #
# $Id: Makefile,v 1.1 2001/02/15 01:47:55 mdb Exp $ # $Id: Makefile,v 1.2 2001/03/02 01:22:07 mdb Exp $
ROOT = ../.. ROOT = ../..
SRCS = \ SRCS = \
Log.java \
include $(ROOT)/build/Makefile.java include $(ROOT)/build/Makefile.java
@@ -1,5 +1,5 @@
// //
// $Id: DispatcherServlet.java,v 1.4 2001/03/01 21:09:54 mdb Exp $ // $Id: DispatcherServlet.java,v 1.5 2001/03/02 01:22:07 mdb Exp $
package com.samskivert.webmacro; package com.samskivert.webmacro;
@@ -16,6 +16,7 @@ import javax.servlet.ServletConfig;
import javax.servlet.ServletContext; import javax.servlet.ServletContext;
import javax.servlet.ServletException; import javax.servlet.ServletException;
import com.samskivert.Log;
import com.samskivert.util.ConfigUtil; import com.samskivert.util.ConfigUtil;
import com.samskivert.util.StringUtil; import com.samskivert.util.StringUtil;
import org.webmacro.*; import org.webmacro.*;
@@ -1,11 +1,12 @@
// //
// $Id: ExceptionMap.java,v 1.3 2001/02/16 03:27:54 mdb Exp $ // $Id: ExceptionMap.java,v 1.4 2001/03/02 01:22:07 mdb Exp $
package com.samskivert.webmacro; package com.samskivert.webmacro;
import java.io.*; import java.io.*;
import java.util.*; import java.util.*;
import com.samskivert.Log;
import com.samskivert.util.ConfigUtil; import com.samskivert.util.ConfigUtil;
import com.samskivert.util.StringUtil; import com.samskivert.util.StringUtil;
@@ -1,5 +1,5 @@
// //
// $Id: FormUtil.java,v 1.2 2001/03/01 21:06:22 mdb Exp $ // $Id: FormUtil.java,v 1.3 2001/03/02 01:22:07 mdb Exp $
package com.samskivert.webmacro; package com.samskivert.webmacro;
@@ -7,6 +7,7 @@ import java.text.ParseException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
import com.samskivert.Log;
import com.samskivert.util.StringUtil; import com.samskivert.util.StringUtil;
import org.webmacro.servlet.WebContext; import org.webmacro.servlet.WebContext;
@@ -1,5 +1,5 @@
# #
# $Id: Makefile,v 1.4 2001/03/01 21:06:22 mdb Exp $ # $Id: Makefile,v 1.5 2001/03/02 01:22:07 mdb Exp $
ROOT = ../../.. ROOT = ../../..
@@ -10,7 +10,6 @@ SRCS = \
ExceptionMap.java \ ExceptionMap.java \
FormUtil.java \ FormUtil.java \
FriendlyException.java \ FriendlyException.java \
Log.java \
Logic.java \ Logic.java \
include $(ROOT)/build/Makefile.java include $(ROOT)/build/Makefile.java