Class Trace

java.lang.Object
eds.framework.Trace

public class Trace extends Object
Provides simple logging functionality for the simulation framework. Trace allows filtering log output based on severity level. Only messages with a level greater than or equal to the currently set trace level are printed to standard output.
  • Constructor Details

    • Trace

      public Trace()
  • Method Details

    • setTraceLevel

      public static void setTraceLevel(Trace.Level lvl)
      Sets the current trace level. Only messages at this level or higher will be printed.
      Parameters:
      lvl - the new trace level
    • out

      public static void out(Trace.Level lvl, String txt)
      Prints a message if its level is greater than or equal to the current trace level.
      Parameters:
      lvl - the level of the message
      txt - the message text