// Copyright (c) 2002  SPY internetworking <dustin@spy.net>
//
// $Id: DefaultLogger.java,v 1.2 2002/11/04 21:16:09 dustin Exp $

package net.spy.log;

/**
 * Default logger implementation.
 *
 * This logger is really primitive.  It just logs everything to stderr if
 * it's higher than debug.
 */
public class DefaultLogger extends AbstractLogger {

	/**
	 * Get an instance of DefaultLogger.
	 */
	public DefaultLogger(String name) {
		super(name);
	}

	/** 
	 * @see AbstractLogger
	 */
	protected void logAt(int level, Object message, Throwable e) {
		if(level >= INFO) {
			System.err.println(getName() + " (" + levelToString(level)
				+ "): " + message);
			if(e != null) {
				e.printStackTrace();
			}
		}
	}

}

@@ -87,17 +87,17 @@
 ava,v 1.
-2
+3
  2002/11
@@ -102,17 +102,17 @@
 11/0
-4 21:16:0
+5 07:36:1
 9 du
@@ -284,13 +284,12 @@
 han 
-debug
+INFO
 .%0A *
@@ -558,17 +558,16 @@
 (level %3E
-=
  INFO) %7B

Move this back up to > INFO since I've got proper logge... Keywords: cscvs:MAIN-86