public abstract class Logger
extends java.lang.Object
Logger
descendents. Once a device object is created, the user
can use setLogSets(boolean)
and setLogOthers(boolean)
to
control the object's individual logging characteristics. In this manner, the
user can enable messages only from particular devices.Constructor and Description |
---|
Logger() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isLogInits() |
boolean |
isLogOthers() |
boolean |
isLogSets() |
protected static void |
logInit(java.lang.String msg)
Display message
msg on stdout when
initialization-logging is enabled. |
protected void |
logOther(java.lang.String msg)
Display message
msg on stdout when "other"
logging is enabled. |
protected void |
logSet(java.lang.String msg)
Display message
msg on stdout when
set-logging is enabled. |
void |
setAllLogging(boolean log)
Set all optional diagnostic messages on or off
|
static void |
setLogInits(boolean logInits)
Set whether to report initialization of all devices.
|
void |
setLogOthers(boolean logOthers)
Set whether to report occurences other than initialization and set
events.
|
void |
setLogSets(boolean logSets)
Set whether to report set (configure) events, such as voltage setting
|
java.lang.String |
toString() |
public java.lang.String toString()
toString
in class java.lang.Object
public static boolean isLogInits()
public static void setLogInits(boolean logInits)
logInits
- whether to report device initializationpublic boolean isLogSets()
public void setLogSets(boolean logSets)
logSets
- whether to report set eventspublic boolean isLogOthers()
public void setLogOthers(boolean logOthers)
logOthers
- whether to report occurences other than initialization and set
eventspublic void setAllLogging(boolean log)
log
- whether to print optional diagnostic messagesprotected static void logInit(java.lang.String msg)
msg
on stdout
when
initialization-logging is enabled.msg
- message to printprotected void logSet(java.lang.String msg)
msg
on stdout
when
set-logging is enabled.msg
- message to printprotected void logOther(java.lang.String msg)
msg
on stdout
when "other"
logging is enabled.msg
- message to print