Skip to content

Ghidra is a software reverse engineering (SRE) framework

Added methods to use while debugging that indicate they are not meant to be committed

dragonmacher31f7e8dbc527
diff --git a/Ghidra/Framework/Utility/src/main/java/ghidra/util/Msg.java b/Ghidra/Framework/Utility/src/main/java/ghidra/util/Msg.java
index bae039d7b3..464ec12fb8 100644
--- a/Ghidra/Framework/Utility/src/main/java/ghidra/util/Msg.java
+++ b/Ghidra/Framework/Utility/src/main/java/ghidra/util/Msg.java
@@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -63,6 +63,34 @@ public class Msg {
System.err.println(message);
}
+ /**
+ * Use this method to print temporary log messages that are not intended to be part of a source
+ * code commit. The messages will be output at the DEBUG log level.
+ *
+ * @param originator
+ * a Logger instance, "this", or YourClass.class
+ * @param message
+ * the details of the message
+ */
+ public static void out(Object originator, Object message) {
+ errorLogger.debug(originator, message);
+ }
+
+ /**
+ * Use this method to print temporary log messages that are not intended to be part of a source
+ * code commit. The messages will be output at the DEBUG log level.
+ *
+ * @param originator
+ * a Logger instance, "this", or YourClass.class
+ * @param message
+ * the details of the message
+ * @param throwable
+ * the Throwable that describes the cause of the error
+ */
+ public static void out(Object originator, Object message, Throwable throwable) {
+ errorLogger.debug(originator, message, throwable);
+ }
+
/**
* Used to record a trace message to the log file. All calls to this method
* outside of main methods and JUnit tests will be removed before a