Class Trace
java.lang.Object
eds.framework.Trace
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumLogging levels used to control output verbosity. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidout(Trace.Level lvl, String txt) Prints a message if its level is greater than or equal to the current trace level.static voidsetTraceLevel(Trace.Level lvl) Sets the current trace level.
-
Constructor Details
-
Trace
public Trace()
-
-
Method Details
-
setTraceLevel
Sets the current trace level. Only messages at this level or higher will be printed.- Parameters:
lvl- the new trace level
-
out
Prints a message if its level is greater than or equal to the current trace level.- Parameters:
lvl- the level of the messagetxt- the message text
-