Class ScriptMessage

java.lang.Object
ghidra.app.script.ScriptMessage
All Implemented Interfaces:
Serializable, org.apache.logging.log4j.message.Message

public class ScriptMessage extends Object implements org.apache.logging.log4j.message.Message
A simple Message implementation that allows us to use the filtering capability of log4j. This class has a formatted and unformatted message. log4j writes the formatted message out. Our formatted message is the original message given to us. We use the unformatted message, in conjunction with a regex filter to allow for filtering such that the script log file only has script messages.

See log4j-appender-rolling-file-scripts.xml

See Also:
  • Constructor Details Link icon

    • ScriptMessage Link icon

      public ScriptMessage(String message)
  • Method Details Link icon

    • getFormattedMessage Link icon

      public String getFormattedMessage()
      Specified by:
      getFormattedMessage in interface org.apache.logging.log4j.message.Message
    • getFormat Link icon

      public String getFormat()
      Specified by:
      getFormat in interface org.apache.logging.log4j.message.Message
    • getParameters Link icon

      public Object[] getParameters()
      Specified by:
      getParameters in interface org.apache.logging.log4j.message.Message
    • getThrowable Link icon

      public Throwable getThrowable()
      Specified by:
      getThrowable in interface org.apache.logging.log4j.message.Message