com.ibm.jusb.util
Class StandardOutUsbTracer

java.lang.Object
  extended by com.ibm.jusb.util.UsbTracer
      extended by com.ibm.jusb.util.StandardOutUsbTracer

public class StandardOutUsbTracer
extends UsbTracer

This implementation of UsbTracer sends messages to standard out.

This will print all messages on standard out, if the message level meets the currently set priority level or is higher priority.

Author:
Dan Streetman

Field Summary
static java.lang.String TRACE_MSG_LEVEL
           
 
Fields inherited from class com.ibm.jusb.util.UsbTracer
GLOBAL_TRACER_LEVEL_PROPERTY, GLOBAL_TRACER_NAME_PROPERTY, TRACE_CRITICAL, TRACE_CRITICAL_PROPERTY, TRACE_DEBUG, TRACE_DEBUG_PROPERTY, TRACE_ERROR, TRACE_ERROR_PROPERTY, TRACE_IMPLEMENTATION_PROPERTY, TRACE_INFO, TRACE_INFO_PROPERTY, TRACE_NOTICE, TRACE_NOTICE_PROPERTY, TRACE_WARN, TRACE_WARN_PROPERTY
 
Constructor Summary
StandardOutUsbTracer(java.lang.String name, int level)
          Create a new StandardOutUsbTracer with the specified name and trace level.
 
Method Summary
 void print(java.lang.String name, int level, java.lang.String msg)
          This traces to standard out if appropriate.
 
Methods inherited from class com.ibm.jusb.util.UsbTracer
getDefaultLevel, getDefaultName, getUsbTracer, getUsbTracer, print, print, print, println, println, println, println, setDefaultLevel, setDefaultName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRACE_MSG_LEVEL

public static final java.lang.String TRACE_MSG_LEVEL
See Also:
Constant Field Values
Constructor Detail

StandardOutUsbTracer

public StandardOutUsbTracer(java.lang.String name,
                            int level)
Create a new StandardOutUsbTracer with the specified name and trace level.

Parameters:
name - The default name of this tracer object.
level - The default trace level of this tracer object.
Method Detail

print

public void print(java.lang.String name,
                  int level,
                  java.lang.String msg)
This traces to standard out if appropriate.

If the level meets or exceeds the current level, the message is printed to standard out.

Specified by:
print in class UsbTracer
Parameters:
name - The name of the trace source.
level - The trace level of the message.
msg - The trace message.