org.netbeans.mdr.util
Class Logger

java.lang.Object
  extended byorg.netbeans.mdr.util.Logger

public class Logger
extends java.lang.Object

Logger utility. This class replaces the implementation of the Logger class in package org.netbeans.mdr.util from the NetBeans open source mdr project. The NetBeans implemenation uses a non-mdr class (org.openide.ErrorManager). This imposes a dependency on other NetBeans modules which makes it harder to use the btree implemenatation as a library.

Author:
Michael Bouschen

Field Summary
static int ERROR
           
static int EXCEPTION
           
static int INFORMATIONAL
           
static java.io.PrintStream out
           
static int USER
           
static java.lang.String VERBOSE_PROPERTY
          The name of the boolean system property to enable btree logging.
static int WARNING
           
 
Constructor Summary
protected Logger()
           
 
Method Summary
 java.lang.Throwable annotate(java.lang.Throwable t, java.lang.String localizedMessage)
           
 java.lang.Throwable annotate(java.lang.Throwable target, java.lang.Throwable t)
           
static Logger getDefault()
           
 void log(int severity, java.lang.String msg)
           
 void log(java.lang.String msg)
           
 void notify(int level, java.lang.Exception e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INFORMATIONAL

public static final int INFORMATIONAL
See Also:
Constant Field Values

WARNING

public static final int WARNING
See Also:
Constant Field Values

USER

public static final int USER
See Also:
Constant Field Values

EXCEPTION

public static final int EXCEPTION
See Also:
Constant Field Values

ERROR

public static final int ERROR
See Also:
Constant Field Values

out

public static final java.io.PrintStream out

VERBOSE_PROPERTY

public static final java.lang.String VERBOSE_PROPERTY
The name of the boolean system property to enable btree logging.

See Also:
Constant Field Values
Constructor Detail

Logger

protected Logger()
Method Detail

getDefault

public static Logger getDefault()

notify

public void notify(int level,
                   java.lang.Exception e)

log

public void log(java.lang.String msg)

log

public void log(int severity,
                java.lang.String msg)

annotate

public final java.lang.Throwable annotate(java.lang.Throwable t,
                                          java.lang.String localizedMessage)

annotate

public final java.lang.Throwable annotate(java.lang.Throwable target,
                                          java.lang.Throwable t)


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.