How to Find Ghidra Log Files on Linux and Use Its Built-In Logging API

Ghidra, the open-source reverse engineering tool, uses Apache Log4j to record execution messages, but locating these logs is not straightforward. On Linux, Ghidra follows the XDG Base Directory specification, storing logs and configuration under ~/.config/ghidra/ rather than the commonly expected ~/.ghidra/ folder. The primary log file, application.log, can be found by running a simple find command or by launching Ghidra through Eclipse, which prints the settings directory path directly to the console. Ghidra maintains separate subdirectories for each version and launch mode, making it easy to distinguish logs across different installations. Developers are also advised to replace System.out.println calls with Ghidra's built-in ghidra.util.Msg class, which writes formatted output directly to application.log.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in