com.ibm.jusb.util
Class StandardErrorUsbTracer
java.lang.Object
com.ibm.jusb.util.UsbTracer
com.ibm.jusb.util.StandardErrorUsbTracer
public class StandardErrorUsbTracer
- extends UsbTracer
This implementation of UsbTracer sends messages to standard error.
This will print all messages on standard error, if the message level meets the
currently set priority level or is higher priority.
- Author:
- Dan Streetman
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 |
StandardErrorUsbTracer(java.lang.String name,
int level)
Create a new StandardErrorUsbTracer 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 error 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 |
TRACE_MSG_LEVEL
public static final java.lang.String TRACE_MSG_LEVEL
- See Also:
- Constant Field Values
StandardErrorUsbTracer
public StandardErrorUsbTracer(java.lang.String name,
int level)
- Create a new StandardErrorUsbTracer 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.
print
public void print(java.lang.String name,
int level,
java.lang.String msg)
- This traces to standard error if appropriate.
If the level meets or exceeds the current level, the message is printed to
standard error.
- 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.