Class Logger
java.lang.Object
org.matwoess.jsourceprofiler.tool.instrument.Logger
This class is used to log the parsing process.
It is used to print the current entering or exiting of a program component to the console. It also provides methods to log special events (e.g., finding a control flow break).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
active
public boolean activeWhether the logger should print log messages.
-
-
Constructor Details
-
Logger
Creates a new Logger for the given parser.- Parameters:
p- the parser object to log for
-
-
Method Details
-
log
Prints the given log message to the console.Only prints the message if the logger is active.
- Parameters:
logMessage- the log message to print
-
log
Prints the given log message to the console.Only prints the message if the logger is active.
- Parameters:
formatString- the format string of the log message to printvalues- the values to insert into the format string
-