How to extract all the string constants passed to a logger? #5322
-
If we have
Expected result in CSV:
Is it possible vial codeQL or partially possible because it is not able to see the variable replacement at compile time? |
Beta Was this translation helpful? Give feedback.
Answered by
aeisenberg
Mar 4, 2021
Replies: 1 comment 1 reply
-
Something like this should work for you:
The codeql java extractor hooks into the java compiler and has access to constants before they are inlined. So, you will see actual source code in the results. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sbilello
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Something like this should work for you:
The codeql java extractor hooks into the java compiler and has access to constants before they are inlined. So, you will see actual source code in the results.