Ejemplo n.º 1
0
 /**
  * Prints a non-announcement message to a given log, with a certain verbosity. If log==ALL_LOGS,
  * posted to all logs which accept announcements. No '\n' is printed.
  */
 public synchronized void print(String s, int _verbosity, int log) throws OutputException {
   if (log == ALL_LOGS)
     for (int x = 0; x < logs.size(); x++) {
       Log l = (Log) logs.elementAt(x);
       if (l == null) throw new OutputException("Unknown log number" + l);
       print(s, V_VERBOSE, l);
     }
   else {
     Log l = (Log) logs.elementAt(log);
     if (l == null) throw new OutputException("Unknown log number" + l);
     print(s, V_VERBOSE, l);
   }
 }
Ejemplo n.º 2
0
 /**
  * Prints a non-announcement message to the given logs, with a certain verbosity. No '\n' is
  * printed.
  */
 public synchronized void print(String s, int[] _logs) throws OutputException {
   print(s, V_VERBOSE, _logs);
 }
Ejemplo n.º 3
0
 /**
  * Prints a non-announcement message to the given logs, with a certain verbosity. No '\n' is
  * printed.
  *
  * @deprecated Verbosity no longer has any effect
  */
 public synchronized void print(String s, int _verbosity, int[] _logs) throws OutputException {
   for (int x = 0; x < _logs.length; x++) print(s, _logs[x]);
 }
Ejemplo n.º 4
0
 /**
  * Prints a non-announcement message to a given log
  * <!--, with a verbosity of V_NO_GENERAL-->
  * . If log==ALL_LOGS, posted to all logs which accept announcements. No '\n' is printed.
  */
 public synchronized void print(String s, int log) throws OutputException {
   print(s, V_VERBOSE, log);
 }